Here are some useful commands to check server load.
iostat shows disk IO usage. %iowait shows how much time process wait for disk operation. This should be 0. If you are on VPS, check for %steal to see if 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 |