Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

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
add comment

2 Answers

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
add comment

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
add comment

Your Answer

 
discard

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.