High CPU usage? What the...?!

Discussion in 'Site & Server Administration' started by hvalle98, Jul 31, 2009.

  1. #1
    Today my small wordpress themes website with only 2-4 visits a day got suspended because of "High CPU Usage ~ Causing High server loads"?!?

    This is amazing, especially in an oversold quad-core server that its normal load is 2.63 and I have seen it go up to 70.00!

    Can this be because I am using UploadScript for uploading the themes? But it's not a free file hosting site and nobody can upload files except for me! And each file does not exceed the MB! And I haven't uploaded anything since July 8!

    What is going on?
     
    Last edited: Jul 31, 2009
    hvalle98, Jul 31, 2009 IP
  2. kashifyy

    kashifyy Peon

    Messages:
    220
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Where you are hosted?
     
    kashifyy, Jul 31, 2009 IP
  3. hvalle98

    hvalle98 Well-Known Member

    Messages:
    460
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    135
    #3
    Hostlatch.net
     
    hvalle98, Aug 1, 2009 IP
  4. Elvos

    Elvos Active Member

    Messages:
    175
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    53
    #4
    the optimal is 0 - 1.5 per core so if you are in 4 cores server it should be maximum 6 not 70 !!!!!!!
     
    Elvos, Aug 1, 2009 IP
  5. micksss

    micksss Notable Member

    Messages:
    4,427
    Likes Received:
    268
    Best Answers:
    1
    Trophy Points:
    285
    #5
    2-4 visitors a day... are a lot of bots visiting your site too?
     
    micksss, Aug 1, 2009 IP
  6. Professional Dude

    Professional Dude Prominent Member

    Messages:
    6,261
    Likes Received:
    430
    Best Answers:
    0
    Trophy Points:
    330
    #6
    Try blocking unwanted bots, that will help a lot.
     
    Professional Dude, Aug 1, 2009 IP
  7. digitalpoint

    digitalpoint Overlord of no one Staff

    Messages:
    38,334
    Likes Received:
    2,613
    Best Answers:
    462
    Trophy Points:
    710
    Digital Goods:
    29
    #7
    WordPress is notorious for being a much higher load on servers than it should be, but I'm pretty sure 2-4 visitors/day to your blog isn't causing the server load to hit 70. There's more to it than that. Either your blog is really doing something it shouldn't be (maybe hacked or something), or your hosting provider incorrectly thinks it's you causing the high load. Ask them how they are determining it's your site...
     
    digitalpoint, Aug 1, 2009 IP
  8. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #8
    The first thing I would advise is you investigate your plugins. A lot of users just blindly install various plugins and as a result you end up having pages doing 400-500 queries. This is very excessive and depending on it's PHP use can be a major CPU hog. Your provider Hostlatch.net is using cPanel so they're most likely pulling this data from the WHM CPU and memory usage page. It's not nearly accurate but for most providers with limited knowledge it provides enough insight.

    So disable the plugins and disable extra crons and ask them if the problem has gone away. If so then you'll need to slowly introduce them again testing page loads until the problem comes up then you know the bad plugin. A lot of cases all you need to do is visit your blog and if it's taking 10 seconds to load suddenly you know there is a problem.
     
    InFloW, Aug 1, 2009 IP
  9. hvalle98

    hvalle98 Well-Known Member

    Messages:
    460
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    135
    #9

    Thank you, but in fact, the plugins were updated and were just four:

    1. Wp-pagenavi
    2. All-in-one seo pack
    3. XML Sitemap generator
    4. Wp-postratings

    I asked how much did my website used and it was just 31% of the CPU! (The limit is only 21%!) Other hosts allow much more... 50 or 60%
     
    hvalle98, Aug 2, 2009 IP
  10. InFloW

    InFloW Peon

    Messages:
    1,488
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    0
    #10
    31% of a single CPU is a lot if you're receiving very little traffic. No host is going to let you use 50% of a single CPU of theirs if they do they won't be around very long. So have you tried visiting your pages do they load instantly? If not then it's a plugin causing your issues. I would maybe even try having them disabled for a few days and see if the usage is gone. If so then you know it's one of the plugins causing it.
     
    InFloW, Aug 3, 2009 IP