A useful command to watch server load
October 6th, 2009
You can use watch utility to monitor the server load on the problematic servers.
For eg :
watch uptime
By default this refreshes every two seconds i.e executes the command every two seconds. It resembles a top like utility which also refreshes continuously but here we can have only look on the server load rather than the processes and other things.
You need to press ctrl+c to stop the watch process.
This watch utility can be used with other commands also say if you want to check the last mail logs every 5 seconds.
The you can give
watch -n 5 tail /var/log/exim_mainlog