Guernica Posted July 18, 2011 Share Posted July 18, 2011 My website was working fine and then all of a sudden I started getting a mysql error that says the "mysql_max_connections" limit has already been reached. On cPanel my cpu usage stats climbed insanely quick. It only does this when I access the downloads section of my website... No where else on the website does this occur. I've been looking through my code to find any open loops or things of that nature and I can't find anything... Here is the usage screenshot: Any ideas? Thanks!! Quote Link to comment https://forums.phpfreaks.com/topic/242269-mysql_max_connections/ Share on other sites More sharing options...
fenway Posted July 20, 2011 Share Posted July 20, 2011 Well, what is the max set to? Quote Link to comment https://forums.phpfreaks.com/topic/242269-mysql_max_connections/#findComment-1245392 Share on other sites More sharing options...
Guernica Posted July 21, 2011 Author Share Posted July 21, 2011 I'm not sure but they won't change it. Should the usage be jumping that high though? The script for the downloads doesn't do any more mysql queries than the rest of the website. At least not be more than 1-2 if so. Why would it sky rocket just on the downloads section? If I had VPS would it still be going to high? Quote Link to comment https://forums.phpfreaks.com/topic/242269-mysql_max_connections/#findComment-1245438 Share on other sites More sharing options...
fenway Posted July 22, 2011 Share Posted July 22, 2011 That's not really an answer -- are you using persistent connections? Quote Link to comment https://forums.phpfreaks.com/topic/242269-mysql_max_connections/#findComment-1246230 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.