"Htop, Glances, dstat" introduced the Knife class in--linux system monitoring

Source: Internet
Author: User


System Monitoring tools Htop, Glances, Dstat introduction


background: in an enterprise production environment, many users prefer to monitor the system with the top tools that come with a variety of distributions, but sometimes it may be difficult to find an application or process that occupies a large system resource by using top. Because the top command itself does not help us highlight processes that consume more system resources. Here is a more sharp monitoring tool for the relative top.

htop: is the enhanced version of top. A multi-functional dynamic system monitoring tool that supports mouse operation, highlighting, and automatic sequencing. You can define a specified refresh

Room and interactive operations. The system is not self-bringing, so we need to install it ourselves. Let's take a look at its gorgeous interface.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/54/29/wKioL1R6sQ_zPha5AAlIDQVE1IM745.jpg "title=" Htop.png "alt=" Wkiol1r6sq_zpha5aalidqve1im745.jpg "/>

Here's an introduction to this interface:

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/54/29/wKioL1R6thfABihHAACTUVO6YAc678.jpg "title=" Top1.png "alt=" Wkiol1r6thfabihhaactuvo6yac678.jpg "/>

The CPU, memory, and swap interfaces in the picture are visually visible in strips and numerals. The load average (average load) represents the queue length of the current CPU waiting for the process queue to run, such as a length of 1 for 1 processes, with three values representing

average of the last 1 minutes, 5 minutes, 15 minutes process queue length. A larger value indicates that the current CPU load is higher and you can also use the Htop heel option:-D #: Refresh interval,-u USERNAME: Displays only the process of the specified user-s COLUMN:

The specified fields are sorted.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/54/29/wKioL1R6u3CDN2bPAACwbSbl4K8290.jpg "title=" OK. png "alt=" wkiol1r6u3cdn2bpaacwbsbl4k8290.jpg "/> Above these options, can be automatically sorted by mouse click. Use the F1 key to get help. F10 key to exit. Of course you can also use the mouse to click.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/54/29/wKioL1R6vT-BQQAGAAPW4SZfiyw552.jpg "title=" Help picture. png "alt=" wkiol1r6vt-bqqagaapw4szfiyw552.jpg "/>

 

s tracks the system calls initiated by the selected process and wants to track a process directly with the mouse selected and type S into the tracking process interface, pressing ESC to end the trace. L Track the files that are open when the selected process is run, the mouse first selects process--type L into the trace process

interface, press F5 to refresh-press the ESC key to end the trace. The T key also has the function of the directory tree. How is not very strong!

   

glances: glances is a GPL-licensed free software used to monitor the Gnu/linux and FreeBSD operating systems. Glances also offers a number of practical options. with glances, we can monitor the utilization of CPU, average load, memory, network traffic, disk I/O, other processors and file system space.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M02/54/2B/wKiom1R6v_-QOAqgAAc8YLxpXe8782.jpg "title=" Glance picture. png "alt=" wkiom1r6v_-qoaqgaac8ylxpxe8782.jpg "/>

The same glances also needs to be installed on its own, where the M key means sorting by memory, and the C key means sorting by CPU. More we pass, press H for help.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M00/54/2B/wKiom1R6wkKixA7DAAMkmwp8EYA509.jpg "title=" Help 2.png "alt=" Wkiom1r6wkkixa7daamkmwp8eya509.jpg "/>

For example:   first install Nginx module to start nginx service-->glances-o html-f  /usr/share/nginx/html/.

     dstat: is a real-time refresh tool, and the functionality is very powerful. total-cpu-usage for CPU usage statistics,-dsk/total for disk read/write rate, net/total for network transfer rate, paging for memory page swap, system for interrupt and up and down text toggle.

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/54/2A/wKioL1R6yCvSd3PsAAONPeegx38784.jpg "title=" Dstat.png "alt=" Wkiol1r6ycvsd3psaaonpeegx38784.jpg "/>

     dstat - C: Statistics onlyCPUUsage status. - D: Displays only disk-related usage.- G: Displays only the memory page swap out condition.- N: Displays only the status of the network transport. --io: Displays only The Read and write rate status of the IO device. Where several parameters of the CPUUsr:user space. Sys:system, Idl:idle wai:waiting IO, Hiq:hardware interrupt, Si:software interrupt

650) this.width=650; "src=" Http://s3.51cto.com/wyfs02/M01/54/2B/wKiom1R6y3yC_by6AAC61-A88uo412.jpg "title=" 5. PNG "width=" "height=" "border=" 0 "hspace=" 0 "vspace=" 0 "style=" WIDTH:800PX;HEIGHT:97PX; "alt=" wkiom1r6y3yc_ By6aac61-a88uo412.jpg "/> the following Dstat also support the following options and do not enumerate the demos:

--aio: Displaying asynchronous IO statistics

--IPC:IPC Related Information

--raw:raw socket

--TCP:TCP socket

--UDP:UDP socket

--socket:raw, TCP, UDP

--unix:unix Sock

--TOP-CPU: Show CPU-intensive processes

--top-bio: Shows the process that most occupies block IO

--top-mem: Show the most memory-intensive processes

--top-io: Most IO-intensive process
















This article is from the "I and Linux years" blog, please be sure to keep this source http://guanqianjian.blog.51cto.com/9652236/1584766

"Htop, Glances, dstat" introduced the Knife class in--linux system monitoring

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.