Re: High load

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]



From: Kaushal Shriyan <kaushalshriyan@xxxxxxxxx>

> 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
_______________________________________________
CentOS mailing list
CentOS@xxxxxxxxxx
http://lists.centos.org/mailman/listinfo/centos


[Index of Archives]     [CentOS]     [CentOS Announce]     [CentOS Development]     [CentOS ARM Devel]     [CentOS Docs]     [CentOS Virtualization]     [Carrier Grade Linux]     [Linux Media]     [Asterisk]     [DCCP]     [Netdev]     [Xorg]     [Linux USB]
  Powered by Linux