日韩性视频-久久久蜜桃-www中文字幕-在线中文字幕av-亚洲欧美一区二区三区四区-撸久久-香蕉视频一区-久久无码精品丰满人妻-国产高潮av-激情福利社-日韩av网址大全-国产精品久久999-日本五十路在线-性欧美在线-久久99精品波多结衣一区-男女午夜免费视频-黑人极品ⅴideos精品欧美棵-人人妻人人澡人人爽精品欧美一区-日韩一区在线看-欧美a级在线免费观看

歡迎訪問 生活随笔!

生活随笔

當(dāng)前位置: 首頁 > 人文社科 > 生活经验 >内容正文

生活经验

Linux监控工具dstat

發(fā)布時(shí)間:2023/11/27 生活经验 46 豆豆
生活随笔 收集整理的這篇文章主要介紹了 Linux监控工具dstat 小編覺得挺不錯(cuò)的,現(xiàn)在分享給大家,幫大家做個(gè)參考.

dstat是一個(gè)用來替換 vmstat,iostat netstat,nfsstat和ifstat這些命令的工具, 是一個(gè)全能系統(tǒng)信息統(tǒng)計(jì)工具. 與sysstat相比, dstat擁有一個(gè)彩色的界面, 在手動(dòng)觀察性能狀況時(shí), 數(shù)據(jù)比較顯眼容易觀察; 而且dstat支持即時(shí)刷新, 譬如輸入dstat 3, 即每三秒收集一次, 但最新的數(shù)據(jù)都會(huì)每秒刷新顯示. 和sysstat相同的是, dstat也可以收集指定的性能資源, 譬如 dstat -c 即顯示CPU的使用情況.

官網(wǎng):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èi)存情況

-n, -net 顯示網(wǎng)絡(luò)情況
-N eth1,total 可以指定網(wǎng)絡(luò)接口

-d, -disk 顯示磁盤情況

-ipc 報(bào)告IPC消息隊(duì)列和信號(hào)量的使用情況

總結(jié)

以上是生活随笔為你收集整理的Linux监控工具dstat的全部?jī)?nèi)容,希望文章能夠幫你解決所遇到的問題。

如果覺得生活随笔網(wǎng)站內(nèi)容還不錯(cuò),歡迎將生活随笔推薦給好友。