当前位置:网站首页>dstat使用[通俗易懂]
dstat使用[通俗易懂]
2022-07-02 14:43:00 【全栈程序员站长】
大家好,又见面了,我是你们的朋友全栈君。
1、安装
方法一:yum
#yum install -y dstat
方法二:rpm
官网下载地址:
http://dag.wieers.com/rpm/packages/dstat
#wget http://dag.wieers.com/rpm/packages/dstat/dstat-0.6.7-1.rh7.rf.noarch.rpm
#rpm -ivh dstat-0.6.7-1.rh7.rf.noarch.rpm
2、参数
-c, –cpu 显示CPU情况
-C 0,3,total include cpu0, cpu3 and total
-d, –disk 显示磁盘情况
-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 显示负载
-m, –mem 显示内存情况
-n, –net 显示网络情况
-N eth1,total 可以指定网络接口
-p, –proc 进程
-s, –swap 显示swap情况
-S swap1,total 可以指定多个swap
-t, –time 当前时间
-y, –sys enable system stats
–ipc 报告IPC消息队列和信号量的使用情况
–lock enable lock stats
–raw enable raw stats
–tcp enable tcp stats
–udp enable udp stats
–unix enable unix stats
-M stat1,stat2 enable external stats
–mods stat1,stat2
-a, –all 使用-cdngy 缺省的就是这样显示
-f, –full 使用 -C, -D, -I, -N and -S 显示
-v, –vmstat 使用-pmgdsc -D 显示
–integer show integer values
–nocolor disable colors (implies –noupdate)
–noheaders 只显示一次表头以后就不显示了,使用重定向写入文件时很有用
–noupdate disable intermediate updates
–output file 写入到CVS文件中
dstat -cdlmnpsy
3、使用
执行 dstat 命令,默认情况它会收集-cpu-、-disk-、-net-、-paging-、-system-的数据,一秒钟收集一次
发布者:全栈程序员栈长,转载请注明出处:https://javaforall.cn/148026.html原文链接:https://javaforall.cn
边栏推荐
猜你喜欢

你想要的宏基因组-微生物组知识全在这(2022.7)

Fuyuan medicine is listed on the Shanghai Stock Exchange: the market value is 10.5 billion, and Hu Baifan is worth more than 4billion

How openharmony starts FA of remote devices

How to transfer business data with BorgWarner through EDI?

Connect Porsche and 3PL EDI cases

【Leetcode】13. Roman numeral to integer

Use the API port of the bridge of knowledge and action to provide resources for partners to access

【Leetcode】14. Longest Common Prefix

linux下配置Mysql授权某个用户远程访问,不受ip限制

QWebEngineView崩溃及替代方案
随机推荐
远程办公对我们的各方面影响心得 | 社区征文
Configure MySQL under Linux to authorize a user to access remotely, which is not restricted by IP
几行代码搞定RPC服务注册和发现
2322. Remove the minimum fraction of edges from the tree (XOR and & Simulation)
Un an à dix ans
Changwan group rushed to Hong Kong stocks: the annual revenue was 289million, and Liu Hui had 53.46% voting rights
[cloud native] briefly talk about the understanding of flume, a massive data collection component
Lampe respiratoire PWM
uboot的作用和功能
Qstype implementation of self drawing interface project practice (II)
How to quickly distinguish controlled components from uncontrolled components?
Seven charts, learn to do valuable business analysis
Believe in yourself and finish the JVM interview this time
社交元宇宙平台Soul冲刺港股:年营收12.8亿 腾讯是股东
IP address translation address segment
Weili holdings listed on the Hong Kong Stock Exchange: with a market value of HK $500million, it contributed an IPO to Hubei
Xiaopeng P7 had an accident on rainy days, and the airbag did not pop up. Official response: the impact strength did not meet the ejection requirements
剑指 Offer 21. 调整数组顺序使奇数位于偶数前面
jsp 和 servlet 有什么区别?
【Leetcode】13. Roman numeral to integer