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.

iostat 1 10

Checks for processes in ā€˜Dā€™ state

for x in `seq 1 1 30`; do ps -eo state,pid,cmd | grep "^D"; echo "-"; sleep 2; done

Top processes using CPU resources

top -bn 1 | head -20

Check Running Process

ps aux
top
atop
pstree

Check For Bad Scripts

WPRobot plugin for wordpress take lot of cpu usage, find sites using WPRobot

find /home -name 'wprobot.php'
Need help with Linux Server or WordPress? We can help!

Leave a Reply

Your email address will not be published. Required fields are marked *