Server Load
Here are some useful commands to check server load.
iostat shows disk IO usage. %iowait shows how much time the process waits for disk operation. This should be 0. If you are on VPS, check for %steal to see if the host server is overloaded.
1 |
iostat 1 10 |
Checks for processes in āDā state
1 |
for x in `seq 1 1 30`; do ps -eo state,pid,cmd | grep "^D"; echo "-"; sleep 2; done |
Top processes using CPU resources
1 |
top -bn 1 | head -20 |
Check Running Process
1 2 3 4 |
ps aux top atop pstree |
Check For Bad Scripts
WPRobot plugin for wordpress take lot of cpu usage, find sites using WPRobot
1 |
find /home -name 'wprobot.php' |