Dstat system monitoring and dstat monitoring

Source: Internet
Author: User

Dstat system monitoring and dstat monitoring

System Monitoring Tool-dstat

Dstat is a multi-function statistical tool implemented in Python. It is used to replace vmstat, iostat, netstat, ifstat, and other commands in Linux.
Features:
1. Real-time Monitoring
2. easy expansion, that is, adding custom counters
3. Small resource occupation
4. different colors are used to indicate different units. To increase readability, install yum install dstat easily. Version: the dstat -- version command displays the dstat version, the operating system version, the Python version, the number of CPUs, and supported plug-ins.

Dstat -- version

Execute dstat:

This is the information displayed by default output:
CPU status: CPU usage. The more interesting part of this report is that it shows the user, system, and idle part, which better analyzes the current CPU usage. If you see that the CPU status in the "wait" column is a high usage value, it indicates that the system has some other problems. When the CPU status is "waits", it is because it is waiting for the response of the I/O device (such as memory, disk, or network) and has not yet received.
Disk statistics: disk read/write operations. This column displays the total number of read and write operations on the disk.
Network statistics: the data sent and received by network devices. The total number of network receiving and sending data is displayed in this column.
Paging statistics: System paging activities. Paging refers to a memory management technology used to find system scenarios. A large paging indicates that the system is using a large amount of swap space, or the memory is very scattered, in most cases, you want to see that the value of page in and page out is 0.
System statistics: This item shows the interrupt (int) and context switch (csw ). This statistic is meaningful only when compared baselines exist. The high statistical value in this column usually indicates that a large number of processes cause congestion and the CPU needs to be concerned. Generally, your server runs some programs, so this always displays some numerical values.
Cpu, disk, network, page feed, system information, once per second installation frequency output, press Ctrl + C to complete
 
Common options:
-C: displays the CPU usage (sys, idl, wai, usr). sys: CPU in use, idl: Percentage of idle CPU waiting time, wai: Waiting for disk IO, hiq: hard
-D Display disk read/write status-l count system load
-L: displays the load statistics.
-M: displays memory usage (including used, buffer, cache, and free values)
-R: displays I/O statistics.
-S: displays swap partition usage
-T: display the current time in the first line
-Fs: displays statistics on the file system, including the total number of files and inodes)
-Nocolor: Do not display colors (sometimes useful)
-Socket: displays network statistics
-Tcp: displays common TCP statistics.
-Udp: displays the listener's UDP interface and some dynamic data of its current usage.
-- Disk-util: displays the busy status of the disk at a time.
-- Disk-util: displays the busy status of the disk at a time.
-- Proc-count: displays the number of running programs.
-- Top-bio: indicates the largest process of block I/O.
-- Top-cpu: displays the process with the largest CPU usage graphically.
-- Top-io: displays the process with the largest normal I/O
-- Top-mem: displays the processes that occupy the most memory.

Example
Sometimes you want to find the user or process that occupies the most system resources:

Check who is using all the memory:

Display CPU resource loss data:

 

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.