WordPress causing high CPU utilization

Since a few days it turns out my blog is causing high CPU utilization for the PHP process. So much that my provider has given me two weeks to solve it. If not I have to “make alternative arrangements.” which comes down to four options:

1. Upgrade my package to the VPS Plan.
2. Upgrade my package to the Dedicated hosting plan.
3. Host somewhere else.
4. Give up this blog completely.

Here’s what I don’t get though, according to Google Analyctics I have only around 250 visitors a day. Anyway, here’s what i’ve done so far without any luck:

Installed WP-Supercache
Why: Instead of going through index.php it serves files directly by using rewrite rules in htaccess
Outcome: This seem to have relieved a small bit of the pain but I’m still averaging 70% CPU utilization.

Deactivate the Sociable plugin
Why: This was the only plugin I upgraded just 2 days before the mayhem started.
Outcome: Didn’t do anything

Added IP’s to htaccess to deny access
Why: It wasn’t only WordPress that caused high CPU, also my forum. When I checked the IP’s that accessed my forum it turned out that of the 441 IP that accessed my forum in Nov, approximately 132 were known forum spammers.
Outcome: Helped a little bit, more IP’s added

Blocked certain pages
Why: People were accessing the pages directly and they didn’t have any need for it
Outcome: Precise outcome unknown

Stopped saving of drafts
Why: I saw a long list of accessing the drafs, even when I wasn’t logged in
Outcome: Precise outcome unknown

Well the CPU utilization is under control right now. I’m not really sure what caused it. That’s the bad part of using a host without shell access, you can’t really see immediate effects on changes you make.

I believe the biggest problem was spammers hitting my blog, as it happened long after my initial increase of readers. I didn’t change anything around the day the problem started, except for the plugin upgrade which wasn’t the cause.

Since a few days it turns out my blog is causing high CPU utilization for the PHP process. So much that my provider has given me two weeks to solve it. If not I have to “make alternative arrangements.” which comes down to four options:

1. Upgrade my package to the VPS Plan.
2. Upgrade my package to the Dedicated hosting plan.
3. Host somewhere else.
4. Give up this blog completely.

Here’s what I don’t get though, according to Google Analyctics I have only around 250 visitors a day. Anyway, here’s what i’ve done so far without any luck:

Installed WP-Supercache
Why: Instead of going through index.php it serves files directly by using rewrite rules in htaccess
Outcome: This seem to have relieved a small bit of the pain but I’m still averaging 70% CPU utilization.

Deactivate the Sociable plugin
Why: This was the only plugin I upgraded just 2 days before the mayhem started.
Outcome: Didn’t do anything

Added IP’s to htaccess to deny access
Why: It wasn’t only WordPress that caused high CPU, also my forum. When I checked the IP’s that accessed my forum it turned out that of the 441 IP that accessed my forum in Nov, approximately 132 were known forum spammers.
Outcome: Helped a little bit, more IP’s added

Blocked certain pages
Why: People were accessing the pages directly and they didn’t have any need for it
Outcome: Precise outcome unknown

Stopped saving of drafts
Why: I saw a long list of accessing the drafs, even when I wasn’t logged in
Outcome: Precise outcome unknown

Well the CPU utilization is under control right now. I’m not really sure what caused it. That’s the bad part of using a host without shell access, you can’t really see immediate effects on changes you make.

I believe the biggest problem was spammers hitting my blog, as it happened long after my initial increase of readers. I didn’t change anything around the day the problem started, except for the plugin upgrade which wasn’t the cause.

This article is filed under the category This Website and has the following tags associated with it: , , , .
  • WordPress is a “Sophisticated” application with a pretty polished UI.Hopefully this post and many others on the same issue would help persuade wordpress developers to deal with the issue.

    tried drupal?

  • Thanks for the info. I am currently in this same situation. It is very frustrating to trouble shoot when you have no idea what your changes do.

    Someone else suggested I look at eAccelerator, x-cache, or memcache.

    Unfortunately for me, I don’t think lunarpages is going to give me another chance to fix the problem.

    • I send you an email as I had a problem with Lunarpages as well, but I was able to solve it and not change provider or get a more expensive option.

      • can you share for me a solution for solve the problem with Lunarpages ( high CPU because WordPress ) ?
        Thank You Very Much !
        My site is suspend 🙁

download