Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

server load very high suddenly

Discussion in 'EasyApache' started by lambov, Feb 16, 2017.

  1. lambov

    lambov Member

    Oct 9, 2016
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    my average server load is 3 (my cpu core/thread is 4/8) but today my server load very high and load average within 10 and running command from ssh very slow too
    based on htop process there was many nobody process /usr/sbin/httpd that using cpu more than 100%

    i don't know why /usr/sbin/httpd cpu usage very high suddenly and because the process as nobody i can not find user that causing high load, and based on my cloudlinux lve stats i didn't find any user that using high load and also why cloudlinux lve can not handle the high load,, i tried to suspend some accounts that have average daily cpu usage high but it didn't much help

    i contacted my datacenter tech if my server under DDOS attack but they told me that my server was not under attack,

    now my server back normal after high load within 6 hours, but i don't know what was happening on my server, i'm using EA4 with mod_lsapi profile i have checked on apache error log but it looks normal to me

    help me how to find process/user that caused my server high load on /usr/sbin/httpd as nobody
    what apache profile should i use so /usr/sbin/httpd is not run as nobody but as user?
  2. mariusfv

    mariusfv Active Member

    Mar 24, 2013
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Access your server as root

    1. Use command:

    then press (Shift+P) to sort processes as per CPU utilization and find top consumers.

    *press q to exit top.

    other useful commands of top(sort by memory, etc):

    See Linux TOP commands

    2. Use tail command to see latest errors in apache, cpanel, mod security, php-fpm, exim, or any package you have installed.
    Log investigation of few of them:

    tail -f /usr/local/apache/logs/access_log
    tail -f /usr/local/apache/logs/error_log
    tail -f /usr/local/cpanel/logs/access_log
    tail -f /usr/local/apache/logs/modsec_audit.log
    tail -f /etc/apache2/logs/modsec_audit.log
    tail -f /var/log/exim_mainlog
    *press Ctrl+C stop to retrieve the log

    For cpanel:
    cd /usr/local/cpanel/logs

    ls -la

    tail -f /usr/local/cpanel/logs/access_log

    For specific username:

    tail -f /home/UsernameHere/public_html/error_log
    #2 mariusfv, Feb 17, 2017
    Last edited: Feb 17, 2017
  3. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Apr 11, 2011
    Likes Received:
    Trophy Points:
    cPanel Access Level:
    Root Administrator
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice