下載頁面:
http://sebastien.godard.pagesperso-orange.fr/download.html
http://pagesperso-orange.fr/sebastien.godard/sysstat-11.1.2.tar.gz
?
啟動(dòng)sysstat
/etc/init.d/sysstat start
?
sar [選項(xiàng)] [<時(shí)間間隔> [<次數(shù)>]]
? ??Option:
? ??? ??-u CPU利用率
? ??? ??-P 指定CPU
? ??? ??-r 內(nèi)存和交換空間的使用統(tǒng)計(jì)。
? ??? ??-b 緩沖區(qū)使用情況。
? ??? ??-S 交換區(qū)
? ??? ??-d 硬盤使用報(bào)告
? ??? ??? ??[dmsetup ls] 和 [df -h]確定設(shè)備名稱
? ??? ??-f 指定文件查看歷史數(shù)據(jù)
? ??? ??-n 網(wǎng)絡(luò)(參數(shù):ALL, DEV, EDEV, NFS, NFSD, SOCK, IP, EIP, ICMP, EICMP, TCP, ETCP, UDP, SOCK6, IP6, EIP6, ICMP6, EICMP6 and UDP6)
? ??? ??-q:報(bào)告隊(duì)列長度和系統(tǒng)平均負(fù)載
? ??Demo:
? ??? ??sar -b -f /var/log/sa/sa21
? ??? ??sar -n DEV 2 5 網(wǎng)絡(luò)吞吐量
? ??? ??sar -P ALL
mpstat [選項(xiàng)] [<時(shí)間間隔> [<次數(shù)>]]
? ??與CPU的一些統(tǒng)計(jì)信息
? ??Option:
? ??? ??-P 指定CPU
? ??Demo:
? ??mpstat -P ALL 1 3
iostat [選項(xiàng)] [<時(shí)間間隔> [<次數(shù)>]]
? ??用來顯示存儲子系統(tǒng)的詳細(xì)信息,通常用它來監(jiān)控磁盤 I/O 的情況
? ??Option:
? ??? ??-c CPU
? ??? ??-d device
? ??? ??-n network filesystem
? ??? ??-k kilobytes
? ??? ??-x extended statistics
? ??Demo:
? ??? ??iostat -d -x -k 1
?
pidstat [選項(xiàng)] [<時(shí)間間隔> [<次數(shù)>]]
? ? 主要用于監(jiān)控全部或指定進(jìn)程占用系統(tǒng)資源的情況
? ??Option:
? ??? ??-p 指定進(jìn)程Id
? ??? ??-u cpu
? ??? ??-r 內(nèi)存
? ??? ??-d IO
? ??? ??-t 線程
? ??? ??-h 用時(shí)間戳顯示時(shí)間
? ??Demo:
? ??? ??pidstat -p $PID -u -d -t -w 1 2
? ??? ??pidstat -p $PID -u -d -w 1 2
更多文章、技術(shù)交流、商務(wù)合作、聯(lián)系博主
微信掃碼或搜索:z360901061

微信掃一掃加我為好友
QQ號聯(lián)系: 360901061
您的支持是博主寫作最大的動(dòng)力,如果您喜歡我的文章,感覺我的文章對您有幫助,請用微信掃描下面二維碼支持博主2元、5元、10元、20元等您想捐的金額吧,狠狠點(diǎn)擊下面給點(diǎn)支持吧,站長非常感激您!手機(jī)微信長按不能支付解決辦法:請將微信支付二維碼保存到相冊,切換到微信,然后點(diǎn)擊微信右上角掃一掃功能,選擇支付二維碼完成支付。
【本文對您有幫助就好】元
