Overload on Server error. Help!

Discussion in 'Site & Server Administration' started by buddhalabs, Mar 20, 2009.

  1. #1
    I am a newbie to server admin and I have an issue on my dedicated server. I got an email with the message below. The tech at my hosting company told me to perform the fix suggested in the error. Problem is I SSHed into my server using putty and then vi, but I don't know what to do from there. I dont know how to get to that file to modify it or even how to modify it. Can someone help me with this?

    [statscheck] Stats/Server Overload on host.mydomainname.com
    This is cPanel stats runner on host.mydomainname.com!
    While processing the log files for user sevenw, the cpu has been
    maxed out for more than a 6 hour period. The current load/uptime line on the server at the time of this email is
    01:03:21 up 31 days, 22:47, 0 users, load average: 4.02, 4.17, 4.30
    You should check the server to see why the load is so high and take
    steps to lower the load. If you want stats to continue to run even with a high load; Edit /var/cpanel/cpanel.config and change extracpus to a number larger then 0 (run /usr/local/cpanel/startup afterwards to pickup the changes).
     
    buddhalabs, Mar 20, 2009 IP
  2. SSANZ

    SSANZ Peon

    Messages:
    861
    Likes Received:
    10
    Best Answers:
    0
    Trophy Points:
    0
    #2
    Hi

    Your tech at the hosting company doesn't know his pubes from his keys.

    You can select in your WHM - Tweak settings, the amount of load to stop running stats at.

    Your cpanel stats has stopped due to high load level e.g being 3. You need to increase it to 5 or more.

    This feature is to stop cpanel stats from taking down the server when its already in high load.
     
    SSANZ, Mar 20, 2009 IP
  3. MH-Andy

    MH-Andy Peon

    Messages:
    30
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Do a netstat and check your logs to make sure you are not being DDoSed
     
    MH-Andy, Mar 21, 2009 IP
  4. muhabbatain

    muhabbatain Active Member

    Messages:
    195
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    51
    #4
    chk netstat by using command

    netstat -plan|grep :80|awk {'print $5'}|cut -d: -f 1|sort|uniq -c|sort -nk 1

    or

    netstat -atun | awk '{print $5}' | cut -d: -f1 | sed -e '/^$/d' |sort | uniq -c | sort -n

    if you see any ip using more than usual connections, block it
     
    muhabbatain, Mar 21, 2009 IP
  5. kailash

    kailash Well-Known Member

    Messages:
    1,248
    Likes Received:
    42
    Best Answers:
    0
    Trophy Points:
    190
    #5
    I do not recommend to run stats at high load. When stats runs it processes all the apache logs of all the domains and updates Awstats, Analog and weblizer. So there is a chance that your server gets overloaded. You should check the reason behind the overloading.

    Kailash
     
    kailash, Mar 22, 2009 IP