Community Forums
Connect with us on LinkedIn
Community Notice
+ Reply to Thread
Results 1 to 7 of 7
  1. #1
    Member
    Join Date
    Jan 2007
    Posts
    12

    Default Apache causing high loads

    Hi there,

    Excuse me if I ask any Noobish questions, however im not as experienced as Id like to think, however I do think I have quite a serious problem. Occasionly the server loads are going rocket high, when i view the CPU usage, most of these are Apache processes such as...

    11161 nobody 0 8.8 1.3 /usr/local/apache/bin/httpd -DSSL
    11132 nobody 0 8.2 0.8 /usr/local/apache/bin/httpd -DSSL
    11137 nobody 0 3.6 0.8 /usr/local/apache/bin/httpd -DSSL

    I don't believe those ones are that bad, however some apache processes occasionly rocket up to about 40.. I also look at the average 24 Hour figures, however I don't seem to get them that much. When i do a tracelog I can see a few things that are apparently causing it, however when I ask clients nicely to try and remove them, Im not really seeing a great difference. Im not sure if im just not looking or undertanding them correctly or what... Heres an example of a few of the Average CPU Usage...

    eoradioc eoradio.co.uk 6.11 15.53 35.4
    Top Process %CPU 16.1 httpd [domain [/shoutbox.php]
    Top Process %CPU 13.2 httpd [domain] [/scripts/panel/style_public.css]
    Top Process %CPU 12.0 httpd [domain] [/stats.php]
    habmadn domain2 4.77 0.22 0.3
    Top Process %CPU 44.0 php -q cron.php
    Top Process %CPU 41.0 php -q cron.php
    Top Process %CPU 40.0 php -q cron.php
    kevinb domain3 3.49 13.06 0.9
    Top Process %CPU 40.0 /usr/local/cpanel/cpanel ./frontend/x/files/trashit.html
    Top Process %CPU 7.6 httpd [domain3] [/topsites/button.php?usssadf]
    Top Process %CPU 5.4 httpd [domain3] [/v4/miscpages/radio_stats.php]
    tom2 domain4 3.05 7.62 31.2
    Top Process %CPU 69.0 gzip -f -
    Top Process %CPU 14.8 httpd [domain4] [/shoutbox/]
    Top Process %CPU 7.0 cpanellogd - archiving logs for tom2


    I notice the cron jobs are of quite high load, however the overall for the account doesnt seem to bad?

    Anyone know what I should do? Im totally stumped as im not that experienced? Is it this that is causing such high loads or is there something else I should be checking?

    The loads can vary from around a reasonably healthy 1.37-19.76 (sometimes higher) during peak times. It doesn't go that high often however it can shoot up to around 10.00 and back down slowly. I relealise this is more of a processor issue, however would purchasing more Ram for the server relax the load?

    Ta for any help, It is much appreciated

  2. #2
    Member
    Join Date
    Jan 2007
    Posts
    12

    Default

    Any help please?

  3. #3
    Registered User
    Join Date
    Oct 2004
    Location
    Air you breathe
    Posts
    2

    Default

    Hi,

    Interesting scenario. But you will want to use the netstat command which is quite effective and you can choose from the ports you want to filter. You can check for the sites connecting through.

    The next option is via your WHM, just check apache status and see for yourself on the sites that are active during high loads. This should help you concentrate your investigation with a restricted number of sites. So that will do the best.


  4. #4
    Member
    Join Date
    Jan 2007
    Posts
    12

    Default

    Hi,

    Thanks for your reply. Thanks for the advice, I didn't realise I could view the sites status via the Apache status, silly me. Ive had a look, however as far as I can see none of them seem to be causing a really high load, or do all these loads add up to create the server load on a whole? Im not sure im really even reading this right!

    Actually... on closer inspection, when the load was about quite high in about 3-4.... i see the following...

    http://img146.imageshack.us/img146/2...elimagesq2.png

    Would these be the sites that are causing the problems?

  5. #5
    cPanel Partner NOC cPanel Partner NOC Badge AndyReed's Avatar
    Join Date
    May 2004
    Location
    Minneapolis, MN
    Posts
    2,223

    Default

    Quote Originally Posted by Jinxey View Post
    the Apache status, silly me. Ive had a look, however as far as I can see none of them seem to be causing a really high load, or do all these loads add up to create the server load on a whole? Im not sure im really even reading this right!
    Did you stop Apache to see if the load would drop? Run this command and see if your server is under attack:

    /bin/netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr
    Andy Reed
    RHCE and CCNA
    ServerTune.com

  6. #6
    Member
    Join Date
    Jan 2007
    Posts
    12

    Default

    Quote Originally Posted by ServerTune View Post
    Did you stop Apache to see if the load would drop? Run this command and see if your server is under attack:

    /bin/netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -nr
    When running that, it comes up with Command not found? Probably my error though.. will try again in a minuite.

    I didn't really stop apache, however when I restart apache via WHM, it reduces the memory, but not so much the load. Im not really sure how to stop apache to be honest, as im not really that experience with shell etc.

  7. #7
    Member
    Join Date
    Sep 2006
    Posts
    144
    cPanel/Enkompass Access Level

    Website Owner

    Default

    any way to trace / calculate how much's CPU every user is using ?


    Thanks,
    QHoster.com - Unlimited-Domain Web Hosting | Shared & Reseller with cPanel

Similar Threads & Tags
Similar threads

  1. How do i tell what Website is causing High server loads with WHM?
    By lighthouseweb in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 02-02-2011, 07:47 PM
  2. WHM causing high server loads
    By 2hostu in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 07-15-2009, 01:46 AM
  3. cpsrvd-ssl - causing high loads
    By t9clkclnr in forum cPanel and WHM Discussions
    Replies: 23
    Last Post: 01-21-2008, 04:03 PM
  4. Named causing high CPU loads
    By ccccanada in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 05-25-2006, 04:49 PM
  5. Horde causing high server loads
    By gflamerich in forum cPanel and WHM Discussions
    Replies: 3
    Last Post: 04-04-2006, 10:20 PM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube