Linux监控工具dstat
生活随笔
收集整理的這篇文章主要介紹了
Linux监控工具dstat
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
dstat是一個用來替換 vmstat,iostat netstat,nfsstat和ifstat這些命令的工具, 是一個全能系統信息統計工具. 與sysstat相比, dstat擁有一個彩色的界面, 在手動觀察性能狀況時, 數據比較顯眼容易觀察; 而且dstat支持即時刷新, 譬如輸入dstat 3, 即每三秒收集一次, 但最新的數據都會每秒刷新顯示. 和sysstat相同的是, dstat也可以收集指定的性能資源, 譬如 dstat -c 即顯示CPU的使用情況.
官網:http://dag.wiee.rs/home-made/dstat/
安裝
#?yum install -y dstat
# dstat --help
Usage: dstat [-afv] [options..] [delay [count]]
Versatile tool for generating system resource statisticsDstat options:-c, --cpu enable cpu stats-C 0,3,total include cpu0, cpu3 and total-d, --disk enable disk stats-D total,hda include hda and total-g, --page enable page stats-i, --int enable interrupt stats-I 5,eth2 include int5 and interrupt used by eth2-l, --load enable load stats-m, --mem enable memory stats-n, --net enable network stats-N eth1,total include eth1 and total-p, --proc enable process stats-r, --io enable io stats (I/O requests completed)-s, --swap enable swap stats-S swap1,total include swap1 and total-t, --time enable time/date output-T, --epoch enable time counter (seconds since epoch)-y, --sys enable system stats--aio enable aio stats--fs, --filesystem enable fs stats--ipc enable ipc stats--lock enable lock stats--raw enable raw stats--socket enable socket stats--tcp enable tcp stats--udp enable udp stats--unix enable unix stats--vm enable vm stats--plugin-name enable plugins by plugin name (see manual)--list list all available plugins-a, --all equals -cdngy (default)-f, --full automatically expand -C, -D, -I, -N and -S lists-v, --vmstat equals -pmgdsc -D total--bw, --blackonwhite change colors for white background terminal--float force float values on screen--integer force integer values on screen--nocolor disable colors (implies --noupdate)--noheaders disable repetitive headers--noupdate disable intermediate updates--output file write CSV output to filedelay is the delay in seconds between each update (default: 1)
count is the number of updates to display before exiting (default: unlimited)
查看CPU信息
#dstat -c
-m, -mem 顯示內存情況
-n, -net 顯示網絡情況
-N eth1,total 可以指定網絡接口
-d, -disk 顯示磁盤情況
-ipc 報告IPC消息隊列和信號量的使用情況
總結
以上是生活随笔為你收集整理的Linux监控工具dstat的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Linux进程浏览器htop安装与使用
- 下一篇: 在Eclipse中使用Maven构建Sp