Title: Help! WordPress Killing the CPU
Last modified: August 18, 2016

---

# Help! WordPress Killing the CPU

 *  [iamPariah](https://wordpress.org/support/users/iampariah/)
 * (@iampariah)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/)
 * Help! I’m desperate.
 * Last week my WordPress site was shut down by my hosting provider for overwhelming
   the CPU. They’ve reactivated the site, but given me only a few days to find and
   resolve the problem. They keep pointing to WordPress, and my own troubleshooting
   reveals that it can only be WordPress.
 * The site is [http://quarkvsindesign.com](http://quarkvsindesign.com). As of the
   17th, it has been hitting 99% CPU usage on all four processor chips on the server.
   I don’t have the history prior to that, but I’m told it was hitting high points
   below 10%. The host’s server logs say the CPU usage is due to /usr/bin/php, but
   they can’t be any more specific than that.
 * In troubleshooting, I’ve disabled everything PHP except WordPress Strayhorn 1.5.2.
 * It’s not a hacked install, and I took the templates down to absolutely barebones
   in the course of troubleshooting–a solitary index.php and a single.php, no header.
   php or footer.php even. Traffic didn’t spike on the 17th, and the site’s overall
   traffic is only about 13% more than the previous month–it’s not enough to cause
   the CPU time to increase tenfold.
 * I’m a level-headed and experienced technical troubleshooter (not a programming
   or network pro, however), but I’m completely lost here. I’ve tried disabling 
   plugins (nothing atypical there anyway), with abosolutely no change. I even rolled
   the posts published since then back to draft status with no change in CPU usage.
   Everything but WordPress has been disabled, and the CPU usage is still astronomical.
 * I would appreciate ANY help on this. Thank you.

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/page/2/?output_format=md)

 *  [schulte](https://wordpress.org/support/users/schulte/)
 * (@schulte)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/#post-276215)
 * So…what plugins do you have loaded anyway?
 *  Moderator [James Huff](https://wordpress.org/support/users/macmanx/)
 * (@macmanx)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/#post-276231)
 * Yes, try disabling all of your active plugins.
 *  [fht](https://wordpress.org/support/users/fht/)
 * (@fht)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/#post-276253)
 * How did you track it down to WordPress?
    I noticed that my browser (FireFox) 
   never says “Done” but only “Transferring data from …” – although the page seems
   to be OK and nothing is downloaded according to my bandwith-monitor.
 * Some thinkings:
    o) look for open Tags o) look for “maximum execution time” in
   php.ini o) double-check that rewrite-stuff in .htaccess – once had the same problem
   with mod_rewrite on one of my projects (not wordpress-specific!)
 *  [fht](https://wordpress.org/support/users/fht/)
 * (@fht)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/#post-276255)
 * Just found this one: [http://wordpress.org/support/topic/39151](http://wordpress.org/support/topic/39151)
 *  Thread Starter [iamPariah](https://wordpress.org/support/users/iampariah/)
 * (@iampariah)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/#post-276365)
 * Hmm. Thanks FHT. I’ll have to check into the efficiency of my .htaccess files.
 *  Thread Starter [iamPariah](https://wordpress.org/support/users/iampariah/)
 * (@iampariah)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/#post-276366)
 * I’ve handled the problem by installing WP-Cache (plugin).
 * I don’t believe I resolved the issue, just fixed the symptoms. That will keep
   my site from being shut off by the host, but I’d still like to track down the
   real cause.
 * How did I track it down to WordPress? Well, the server CPU stats reported that
   the high usage was caused by PHP scripts. After I disabled everything else PHP
   on the site, WordPress was the only thing left and the CPU usage was the same.
 * I don’t necessarily believe WordPress has a fault in it, just that WordPress (
   or some module of it) is the reason the CPU is maxing. It could be anything from
   increased traffic to the site (already ruled out) to poorly coded templates from
   the user (already ruled that out too).
 * The real kicker is, the CPU shot up on a specific day and remained high since.
   I changed nothing in the site on that day or immediately before it. Normally 
   my first troubleshooting step is to look for user (my) error. In this case, that
   wasn’t a factor–although I troubleshot for it anyway by using 3 month old backups,
   just in case I changed the templates or hacked the WP code without telling myself.
 * Search engine traffic increased, but not a great deal. I did throttle the search
   engines back by telling bots through robot.text to wait 20 seconds between each
   page request. Still, 99% CPU after that.
 * It’s perplexing. With WP-Cache I’ve been given breathing room to work on the 
   problem without worrying that my business is going to go down. But, I still want
   to find the actual ailment instead of treating the symptoms.
 * I’ll look into the .htaccess and mod_rewrite rules. Maybe I goofed it months 
   ago, but it was only on 17 Oct (and later) that some other factor caused that
   mistake to become an issue.
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/#post-276367)
 * I read somewhere in the last week that mod_rewrite can do this – but as usual
   in such cases I can’t recall where.
    I’ll search and if I find, I’ll post back.
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/#post-276369)
 * podz, I think that was the thread linked above….
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/#post-276370)
 * vkaryl – I’ll be the one with the faulty memory then 🙂
 *  [Patrick Loonstra](https://wordpress.org/support/users/buxx/)
 * (@buxx)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/#post-276371)
 * I have the same problme, my host called me 2 weeks ago about the CPU overload
   on the server. So we set all the plugin off, the load dropped till normal procedure.
 * I just installe the sats script Bbclone, and there is see my weblog is very often
   visited my viagra site:
    [http://www.buxx.nl/blogg/bbclone/show_detailed.php?lng=nl](http://www.buxx.nl/blogg/bbclone/show_detailed.php?lng=nl)
 * What can it be, as far as i know, there is no known leak in WP.
 *  [vkaryl](https://wordpress.org/support/users/vkaryl/)
 * (@vkaryl)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/#post-276372)
 * Wow, you’ve got tons of crap hits there…. not just the viagra sites, but all 
   the Russian and 3rd world “pharmacy” sites, etc. Are you using anything to combat
   referrer spam or anything like that?
 *  [Patrick Loonstra](https://wordpress.org/support/users/buxx/)
 * (@buxx)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/#post-276384)
 * Not right now, but i do not have problems with spammers om comments.
    Only a 
   whole lot of visitor. What sort of plugin can i use for preventing this?
 *  [Mark (podz)](https://wordpress.org/support/users/podz/)
 * (@podz)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/#post-276385)
 * Bad-Behaviour will stop some:
    [http://www.ioerror.us/software/bad-behavior/](http://www.ioerror.us/software/bad-behavior/)
 * Referer Karma will catch others:
    [http://unknowngenius.com/blog/wordpress/ref-karma/](http://unknowngenius.com/blog/wordpress/ref-karma/)
 * I use both.
 *  [Patrick Loonstra](https://wordpress.org/support/users/buxx/)
 * (@buxx)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/#post-276386)
 * Okay, i’ll give it a try.
    But, i have no problem with te comment spam, pnly 
   visits from spammers, they do nothing woth my site further as i see.
 *  [richards1052](https://wordpress.org/support/users/richards1052/)
 * (@richards1052)
 * [20 years, 6 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/#post-276387)
 * Iampariah: I’m getting the same CPU Quota Exceeded error from my server over 
   the past wk or so.
 * As with the user who created the post linked above I have mutilple .htaccess 
   files in folders. SO that may be causing the problem. However, I’ve had such 
   multiple files for months & the CPU error has never happened before.
 * I installed Cache too & it really speeds up performance. Though I’ll have to 
   wait to see if it stops the CPU errors.

Viewing 15 replies - 1 through 15 (of 24 total)

1 [2](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/page/2/?output_format=md)
[→](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/page/2/?output_format=md)

The topic ‘Help! WordPress Killing the CPU’ is closed to new replies.

## Tags

 * [cpu](https://wordpress.org/support/topic-tag/cpu/)
 * [exploit](https://wordpress.org/support/topic-tag/exploit/)

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 24 replies
 * 9 participants
 * Last reply from: [iamPariah](https://wordpress.org/support/users/iampariah/)
 * Last activity: [20 years, 5 months ago](https://wordpress.org/support/topic/help-wordpress-killing-the-cpu/page/2/#post-276444)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
