MySQL spawns rogue processes
-
I have an intermittent problem on a wordpress site where periodically something triggers hundreds of MySQL processes as well as corresponding HTTP processes. The symptoms are that the site becomes inaccessible on both the front and back ends. Sometimes it just times out, other times it throws an “Error Establishing Database Connection.” The problem is sometimes triggered by uploading a photo, but other times it just seems to happen randomly. I have not found a way to trigger the problem with any consistency, so it’s very difficult to troubleshoot. Sometimes the site will crash multiple times per day, other times it will work fine for several weeks. It’s not a high traffic site, probably averages around 2-3K page impressions per day.
The site is hosted on a dedicated server running Apache 2.2.15, MySQL 5.0.67 and Php 5.2.13. There are no other installations of WordPress or any other programs using MySQL. There is another site hosted on the server which does not use either WordPress or MySQL, and when the problem occurs the non-wordpress site works fine, though very slow.
When the problem happens, if I look at the Service Monitor on my server I can see that there are literally hundreds of both MySQL and Apache processes running. If I restart both MySQL and Apache the problem goes away. It’s not a build up of processes either – it’s sudden – one minute there will be half a dozen processes, the next there are hundreds. It’s like something just goes crazy and starts spawning processes. When I look at the Apache logs there’s nothing out of the ordinary other than requests that timed out or were very slow to process.
I’ve upgraded to the latest version of WordPress, upgraded all themes and plugins, switched themes, replaced all plugins with different ones to rule out a plugin problem (only one I haven’t replaced is the Configurable Tag Cloud), deleted all unused themes and plugins, run a malware scan, and optimized and repaired all tables in the database. The site has comments turned off and always has.
I am completely flummoxed, and just not sure which direction to look. Could it be a hacker? A problem with MySQL? Problem with the database? Problem with WordPress? Denial of Service attack?
Any suggestions would be greatly appreciated.
The topic ‘MySQL spawns rogue processes’ is closed to new replies.