From: Kaushal Shriyan kaushalshriyan@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