I've been having problems for weeks now with my site having too many idle connections to the mySQL server. My site goes down and displays the following error message:
"User greatbayvillas already has more than 'max_user_connections' active connections" See attached screenshot.
This is because the content mangement system uses persistant connections (mysql_pconnect) in some of it's code.
I asked my hosting company, Brinkster (they suck), to decrease the wait_timeout variable from 600sec to 60sec and this was their response:
Hello,
Thank you for contacting Brinkster regarding your account. We have adjusted the wait_timeout to 600 seconds to kill idle threads and this has been running for a few months on our system now. As a shared hosting server, adjusting the value to 60 seconds would be very aggressive and likely cause issues with other customers. As well, increasing the Max_user_connections would not be an option as that would add additional server load to the server, moreover, most sites would not require more than 15 concurrent connections to MySQL if things are coded correctly and connections are closed correctly.
You are correct in assuming you are using persistent connections and that is where the issue here is. Most CMS applications allow you to turn off persistent connections in favor of mysql_connect() which would be our best suggestion.
So can anyone tell me if there is an option in Evo (1.05+) to turn persistant connections off?
Or if not, will upgrading to Revo solve this issue?
Thanks guys