Jump to content

max_user_connections error - need troubleshooting help


Recommended Posts

I keep receiving max_user_connections error

 

Persistent connections are turned off

max users has been set to unlimited

 

I get about 300K page views per day.  I don't have a dedicated server, but I do have a shared server all to myself with a dual-core processor.  I have been working with my host for a few weeks to troubleshoot this, and I feel like we are overlooking something.

 

Is this a server issue, or could it be caused by a poorly written query somewhere?  What about the daily cron I send to about 35K people every day (it queries new content and sends an update to subscribers)?  Would that cause this?

 

This is my first post, sorry if this isn't the best category.

 

Great forum, thanks!

 

 

Yes, I am using server-side caching. 

 

Does it utilize flat files or does it also use a database? If a database, I'd suggest switching to files if you're having mysql connection limit problems. If files, is the database still being queried much? For how long do you keep the cache files, you might consider increasing the time. Try to use some type of client-side caching as it's really easy on your web server.

This is a Database help question.

 

What about the daily cron I send to about 35K people every day (it queries new content and sends an update to subscribers)?  Would that cause this?

 

The problem probably lies here. Your script is probably not closing it's connection when the query is complete.

I'm not 100% convinced it has to do with closing the connection. When PHP terminates the script it's running it "should" close all mysql connections that are NOT persistent. And as the OP clearly stated mysql persistence is turned off.

 

Nevertheless can a moderator please move this to the DB section of the forum.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.