sh 使用sar进行系统性能监控

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了sh 使用sar进行系统性能监控相关的知识,希望对你有一定的参考价值。

#see below page if you need more functions
#http://www.thegeekstuff.com/2011/03/sar-examples/

#CPU Usage of Individual CPU or Core (reports for every 1 seconds a total of 10 times)
sar -P ALL 1 10

#Memory Free and Used
sar -r 1 10

#Swap Space Used
sar -S 1 10

#Overall I/O Activities
#tps – Transactions per second (this includes both read and write)
#rtps – Read transactions per second
#wtps – Write transactions per second
#bread/s – Bytes read per second
#bwrtn/s – Bytes written per second
sar -b 1 10

#Individual Block Device I/O Activities
sar -p -d 1 10

#Display context switch per second
sar -w 1 10

#Reports run queue and load average
sar -q 1 10

#Report network statistics
sar -n ALL

以上是关于sh 使用sar进行系统性能监控的主要内容,如果未能解决你的问题,请参考以下文章

Linux性能监控-sar

Linux性能监控-sar

性能测试Linux性能监控命令——sar详解

linux下监控工具sar命令详解

Linux服务器性能监控工具sar二

Linux基础:性能监控