Linux system Monitoring Tools Dstat common usage Summary

Source: Internet
Author: User

1) Tool Description
Dstat is a tool for replacing Vmstat,iostat Netstat,nfsstat and Ifstat commands, and is an all-purpose system Information statistic tool. Compared with Sysstat, Dstat has a color interface, which is easy to observe when manually observing performance conditions; and Dstat support instant refresh, such as input Dstat 3, which is collected every three seconds, but the latest data will be refreshed every second. As with Sysstat, Dstat can also collect the specified performance resources.

2) Software Installation

The code is as follows:
# cd/tmp
# RZ
# RPM-UVH dstat-0.6.7-1.el*.rf.noarch.rpm
# which Dstat
/usr/bin/dstat
Or the Ubuntu (Debian system):

The code is as follows:
$ apt-get Install Dstat
3) dstat option

-c 0,3,total include Cpu0, CPU3 and Total
-D,-disk display disk condition
-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 display memory condition
-N,-net Display network condition
-N eth1,total can specify a network interface
-P,-proc enable process stats
-S,-swap show swap situation
-S swap1,total can specify multiple swap
-T,-time enable time counter
-Y,-sys enable system stats
-IPC reports the use of IPC message queues and semaphores
-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 using-cdngy The default is this display
-F,-full using-C,-D,-I,-n and-s Display
-V,-vmstat using-pmgdsc-d display
-integer Show integer values
-nocolor Disable Colors (implies-noupdate)
-noheaders is not displayed once the header is displayed, and is useful when writing files with redirection
-noupdate Disable Intermediate Updates
-output file is written to the CVS files
This software is similar to Vmstat, but it seems to be less vmstat than the IO part, Dstat only shows the throughput of the disk rather than the load, dstat and almost all monitoring software, You can only monitor the entire system and not analyze a process or a program in depth. The arguments I use often are dstat-cdlmnpsy, alias links aliases dstat= ' Dstat-cdlmnpsy '

4) Common usage
View detailed information about the CPU, hard disk, and network.

The code is as follows:
$dstat


View detailed information about the CPU, hard disk, and network.

-C CPU

The code is as follows:
$ dstat-c

-D Disk

The code is as follows:
$ dstat-d

Displays detailed information about the CPU, disk, and so on.

The code is as follows:

$ dstat-cdl-d sda1

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.