当前位置:网站首页>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
边栏推荐
- P6774 [noi2020] tears in the era (block)
- PhD battle-11 preview | review and prospect backdoor attack and defense of neural network
- Talk about an experience of job hopping and being rejected
- 人生的开始
- The poor family once again gave birth to a noble son: Jiangxi poor county got the provincial number one, what did you do right?
- Green bamboo biological sprint Hong Kong stocks: loss of more than 500million during the year, tiger medicine and Beijing Yizhuang are shareholders
- L'explosion de John utilise l'encodage d'entrée par défaut: UTF - 8 Loaded 1 password Hash (bcrypt [blowfish 32 / 64 X3])
- 绿竹生物冲刺港股:年期内亏损超5亿 泰格医药与北京亦庄是股东
- Sword finger offer 25 Merge two sorted linked lists
- VMware install win10 image
猜你喜欢
What if the default browser cannot be set?
伟立控股港交所上市:市值5亿港元 为湖北贡献一个IPO
Baobab's gem IPO was terminated: Tang Guangyu once planned to raise 1.8 billion to control 47% of the equity
体验居家办公完成项目有感 | 社区征文
A case study of college entrance examination prediction based on multivariate time series
Lampe respiratoire PWM
How openharmony starts FA of remote devices
Configure ARP table entry restrictions and port security based on the interface (restrict users' private access to fool switches or illegal host access)
871. Minimum refueling times
亚马逊云科技 Community Builder 申请窗口开启
随机推荐
綠竹生物沖刺港股:年期內虧損超5億 泰格醫藥與北京亦莊是股東
OpenHarmony如何启动远程设备的FA
Seven charts, learn to do valuable business analysis
Domestic relatively good OJ platform [easy to understand]
剑指 Offer 21. 调整数组顺序使奇数位于偶数前面
R及RStudio下载安装教程(超详细)
Connect Porsche and 3PL EDI cases
Qstype implementation of self drawing interface project practice (II)
ETH数据集下载及相关问题
人生的开始
The computer comes with software to make the background color of the picture transparent (matting white background)
超卓航科上市:募资9亿市值超60亿 成襄阳首家科创板企业
深度之眼(二)——矩阵及其基本运算
ThreadLocal
Soul, a social meta universe platform, rushed to Hong Kong stocks: Tencent is a shareholder with an annual revenue of 1.28 billion
A few lines of code to complete RPC service registration and discovery
What if the default browser cannot be set?
ThreadLocal
【Leetcode】13. Roman numeral to integer
【Leetcode】13. 罗马数字转整数