[CentOS] High load

Wed Apr 25 09:52:46 UTC 2012
John Doe <jdmls at yahoo.com>

From: Kaushal Shriyan <kaushalshriyan at gmail.com>

> Is there a way to nail down the issue of high load on a server basically
> trying to understand the reason behind high load at a specific time period.
> I use top command but it does not have history.

Maybe adapt something like this to your needs:
while :; do LOAD=`cat /proc/loadavg | cut -f1 -d'.'`; if [ $LOAD -gt 3 ]; then ps auxfw > /tmp/ps.`date +"%s"`; sleep 60; fi; sleep 10; done

JD