Process management tools: Htop, glances, and Dstat

Source: Internet
Author: User

The Htop is a Linux system monitoring and process management software that replaces the traditional UNIX top. Unlike top, which provides only the most resource-consuming list of processes, Htop provides a list of all processes and uses color to identify processor, swap, and memory states. Wikipedia

Htop need to use Epel source, so we need to download epel-release-latest-6.noarch.rpm software package to Epel official website, which will generate/etc/yum.repo.d/after installation. Epel.repo files, if the host can access the Internet, then directly using the Yum installation is possible. The following screen will appear when you run the htop command directly after installation:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6F/AF/wKiom1WkxujRYQ1xAAIJxcbawzw384.jpg "/>

Press the H key to display the Help information:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/AC/wKioL1WkyMHALhiKAAKyGjEPA3Q176.jpg "/>

in fact, the use of htop is very simple, we can use various sub-commands according to the Help information, the following is mainly to explain the meaning of its display content:

PID Process ID

ppid parent Process ID

ruserreal User Name

User ID of the UID process owner

username of user process owner

Group Process Owner's name

the terminal name of the TTY startup process. Processes that are not started from the terminal are displayed as?

PR-Priority

The ninice value. Negative values indicate high priority, positive values indicate low priority

p last used CPU, only meaningful in multi-CPU environment

%cpu Percentage of CPU time that was last updated to current

The total CPU time, in seconds, used by the duration process

total CPU time used by the time+ process, Unit 1/100 sec

percentage of physical memory used by the%MEM process

The total amount of virtual memory used by the virt process, in kilobytes. Virt=swap+res

The swap process uses the amount of virtual memory that is swapped out, in kilobytes.

The size, in kilobytes, of the physical memory used by the RES process and not swapped out. Res=code+data

The amount of physical memory the code executable consumes, in kilobytes per KB

The amount of physical memory that is used outside the data executable code (segment + stack), in kilobytes

SHR shared memory size, in kilobytes

nflt Number of page faults

NDRT The number of pages that were modified the last time it was written to.

s process Status:

d= non-disruptive sleep state

r= Run

s= Sleep

t= Tracking/stopping

z= Zombie Process

Command name/command line

Wchan If the process is sleeping, the system function name in sleep is displayed

glances and htop very similar is also a process management monitoring tool, configure the Epel source can be installed using Yum directly, after installation is also directly run glances command.

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/AF/wKiom1WkxuniJexbAAH4QgpPFJ0489.jpg "/>

Press the H key to view the Help information:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/AC/wKioL1WkyMKRngyOAALJCOle4Z0269.jpg "/>

because its use simple display content also and htop basically same, no longer repeat.

Dstat is a powerful software that aggregates the functions of the Vmstat, Iostat, Netstat and ifstat four tools, which can monitor the usage status of CPU, disk, network, IO, process, memory etc. in real time. Dstat and the above two monitoring tools is different is that it is a multi-parameter command, using Epel source after installation, directly run Dstat is actually used Dstat cdngy

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/AC/wKioL1WkyMLTdO05AAD6mbXNvGQ004.jpg "/>

However, it is refreshed every 1 seconds, and it will continue to be displayed if you do not do anything else. We can use Dstat 1 5, which is to refresh the execution five times per second. It shows the content information meaning:

usr: User space program consumes CPU percentage

SYS: kernel code in kernel space running kernel consumes CPU percentage

idl:cpu Idle Percentage

Wai: Percentage of waiting for IO to complete

HiQ: Percentage of CPU processing disk interrupts occupied

Siq: Percentage of CPU that handles software outages

Read : Disk read-out rate

writ the rate of disk writes

recv: The rate at which the NIC receives

Send : The rate at which the NIC is sent

in: Memory page frame Write rate

out: The rate at which the memory page model is read out

int: Number of interrupts for the system

CSW: Number of context switches

to view the processes that consume the most CPU resources:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6F/AF/wKiom1WkxurCDfg4AABy_M8bZSc528.jpg "/>

View the processes that occupy the most memory:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/AF/wKiom1Wkxurjt1gYAABVQ70eHvo256.jpg "/>

To view information related to sockets:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6F/AC/wKioL1WkyMPgSTxuAABJpSAkGvg930.jpg "/>

Other uses can use Dstat H or man dstat to view commands using Help.

This article is from the "Linuxlove" blog, make sure to keep this source http://linuxlover.blog.51cto.com/2470728/1674129

Process management tools: Htop, glances, and Dstat

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.