CentOS下dstat監控

來源:互聯網
上載者:User

CentOS下dstat監控

dstat
如果系統沒有些工具 yum -y install dstat安裝下即妥,此軟體小巧玲瓏,軟體包大小隻有144k,安裝大小660k。
此工具預設情況下會動態顯示CPU,disk,net,page,system負載情況,如下所示,當然會有顏色不同標示的,還是比較直觀的,暫且直接複製湊合一看,還望各位看官海涵,千萬莫拍磚。

[root@aaa]# dstat
----total-cpu-usage---- -dsk/total- -net/total- ---paging-- ---system--
usr sys idl wai hiq siq| read writ| recv send| in out | int csw
10 1 89 0 0 0| 76k 339k| 0 0 | 0 0 | 208 686
16 3 82 0 0 0| 0 280k| 126k 125k| 0 0 |1058 500
12 2 86 0 0 0| 0 192k|4600B 6204B| 0 0 |1037 338
14 2 83 0 0 0| 0 0 |5042B 2648B| 0 0 |1029 277

常用參數

-c cpu是也,顯示CPU系統佔用,使用者佔用,空閑,等待,中斷,軟體中斷等資訊

-C 當有多個CPU時候,此參數可按需分別顯示cpu狀態

e.g -C 0,1 顯示cpu0和cpu1的資訊

-d disk是也,顯示磁碟讀寫資料大小

-D hda and total

-n net 顯示網路狀態

-N net 有多塊網卡時,指定要顯示的網卡

-l load average 顯示系統負載情況

-m memory 顯示記憶體使用量情況

-g page 顯示頁面使用方式

-p process 顯示進程狀態

-s swap 顯示交換分區使用方式

-S 類似D/N

-r I/O請求情況

-y system status

--ipc 顯示ipc訊息佇列,訊號等資訊

--socket 用來顯示tcp udp連接埠狀態

-a all 此為預設選項 等同於 -cdngy

-v vmstat 等同於 -pmgdsc -D total

--output 檔案 此選項也比較有用,可以把狀態資訊以csv的格式重新導向到指定的檔案中,以便日後查看。e.g dstat --output /root/dstat.csv & 此時讓程式默默的在後台運行並把結果輸出到/root/dstat.csv檔案中

1. cpu:hiq,siq分別為硬中斷和非強制中斷次數。

2. system:int,csw分別為系統的中斷次數(interrupt)和環境切換(context switch)

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.