The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Very High CPU Usage

Discussion in 'General Discussion' started by blackkaviar, Nov 12, 2014.

  1. blackkaviar

    blackkaviar Member

    Joined:
    Aug 7, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    Hi all,

    I've been receiving these emails since yesterday (received every 6 hours or so) titled
    [statscheck] Stats/Server Overload on vps.xxxxxx.com
    Basically saying that one of my account is running a very high CPU usage.
    And when I checked the "top" command, I found that indeed one account is running about 50-90% CPU usage constantly.
    I found that this happen only since the last 2 days.

    FYI here's some lines from the "top" command

    top - 13:20:39 up 43 days, 12:58, 1 user, load average: 1.89, 1.79, 2.08
    Tasks: 129 total, 3 running, 124 sleeping, 1 stopped, 1 zombie
    Cpu(s): 75.4%us, 24.6%sy, 0.0%ni, 0.0%id, 0.0%wa, 0.0%hi, 0.0%si, 0.0%st
    Mem: 1030628k total, 977808k used, 52820k free, 186932k buffers
    Swap: 0k total, 0k used, 0k free, 255264k cached

    PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    13840 user001 20 0 40056 9504 4840 R 84.7 0.9 1647:12 php

    Can anyone please help me how do I find the source of the problem to fix them?
    Thanks in advance for your help
     
  2. racerx8413

    racerx8413 Member

    Joined:
    Nov 5, 2010
    Messages:
    9
    Likes Received:
    0
    Trophy Points:
    1
    What type of a site is running at user001 cpanel account? Is it a common CMS like wordpress, or custom php?
     
  3. blackkaviar

    blackkaviar Member

    Joined:
    Aug 7, 2014
    Messages:
    6
    Likes Received:
    0
    Trophy Points:
    1
    cPanel Access Level:
    Root Administrator
    It's a Wordpress site.
    And the support team at Cpanel actually provided some valuable additional info here.
    The CPU usage is coming from this script:
    /usr/bin/php /home/user001/public_html/wp-content/themes/index.php

    He ran a strace command using "strace -vvfp 13840", which results in it flooding the screen with the following output:
    access("/home/", R_OK) = -1 EACCES (Permission denied)
    access("/home/", R_OK) = -1 EACCES (Permission denied)
    access("/home/", R_OK) = -1 EACCES (Permission denied)
    access("/home/", R_OK) = -1 EACCES (Permission denied)

    The script seems to be trying to access /home with permissions it does not have, and I am not sure why it would need to access /home at all.
    That's as far as he can help to troubleshoot this.
    Anyone can please advise me where should I go from here?
     
  4. cPanelMichael

    cPanelMichael Forums Analyst
    Staff Member

    Joined:
    Apr 11, 2011
    Messages:
    30,678
    Likes Received:
    651
    Trophy Points:
    113
    cPanel Access Level:
    Root Administrator
    Hello :)

    I just wanted to note that you may find the following thread helpful:

    Troubleshooting High Loads On Linux Systems

    You may also want to post on the WordPress forums to see if the user-feedback there is helpful.

    Thank you.
     
Loading...

Share This Page