Very High CPU Usage
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
-
What type of a site is running at user001 cpanel account? Is it a common CMS like wordpress, or custom php? 0 -
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? 0 -
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. 0
Please sign in to leave a comment.
Comments
3 comments