WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

One of my WP sites is using a lot of CPU, and I am wondering if this is caused because of the high number of spam comments it is getting. Can that be the case? Is there an easy way of checking that?

Thank you.

share|improve this question
up vote 2 down vote accepted

Any time your traffic goes up your CPU usage will go up. Based on what you're saying it could be bot activity. I'm also assuming you're on a shared host that is overloading the server with 10 billion accounts.

My suggestions include:

  • Running a virus scan for WordPress via any number of available plugins
  • Minimize the number of plugins you're running, as they can impact your CPU usage
  • Decrease your database size, be sure deleted tables are actually deleted
  • Add a cache plugin http://wordpress.org/extend/plugins/wp-super-cache/
  • Look for unusual/frequent bot activity and block those suckers
share|improve this answer

What kind of server setup are you using? Is it a VPS with Apache?

I don't see why large numbers of spam comments would be causing high CPU usage. Is the CPU usage sustained or does it spike?

share|improve this answer
Hi Patrick - I am using shared hosting - and my admin reported high CPU. I am trying to figure the root of the cause, since I have a decently regular WP sites. – Tal Galili Dec 2 '11 at 21:04

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.