HTOP/DSTAT/GLABCE Tools Introduction

Source: Internet
Author: User
Tags network function

System Environment Description

[Email protected] ~]# cat/etc/redhat-release

CentOS Release 6.6 (Final)

[Email protected] ~]# UNAME-RM

2.6.32-504.el6.x86_64 x86_64

The tool is not equipped with the CentOS system, and there is no system installation disk, so we need to configure the Epel yum source

32-bit System selection:

RPM-IVH http://download.Fedoraproject.org/pub/epel/6/i386/epel-release-6-8.noarch.rpm

64-bit System selection:

RPM-IVH http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm

Htop

Htop is a run on Linux system monitoring and process management software to replace Unix under the traditional 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.

users can typically choose to install and use Htop when top does not provide detailed system information. For example, when looking for an application's memory leak problem. Compared to top, Htop provides a more convenient, cursor-controlled interface to kill processes.


Compared to top, Htop has the following advantages:

    • You can scroll through the list of processes horizontally or vertically to see all the processes and the complete command line.

    • On startup, it's faster than top.

    • Process number is not required to kill the process.

    • Htop supports mouse operation.

    • Top is already very old.


Htop Installation:

Yum y install htop


Interactive commands

U: Show only the process of the specified user

S: Once a process is selected, you can view the system calls for the current process

L: Displays the files opened by the selected process

T: Show as Process tree

A: Sets the CPU affinity of the process; (binds the selected process to the specified CPU)

Options:

-D #: Latency often

-U USERNAME: Displays only the processes of the specified user

-S COLUMN: Sort according to the specified field


Htop interface Style: mainly consists of four parts

  1. Red Area section: Displays the usage of the CPU (if more than one line is displayed), memory, and swap partition.

  2. Area section: Displays information about the system tasks, such as the number of processes, the average system load, and the startup time.

  3. Purple Area section: Displays information about the process above the system.

  4. Bottom: Shows the function of the F1-F10 button.

    F1,h: Help;

    F2,s: Set;

    F3,/: Search;

    F4,i: Reverse the sort order;

    F5,t: Tree shows the parent process relationship of the process;

    F6,>: select field to sort;

    f7,],-: Increase process priority;

    f8,[,+: Reduce process priority

    F9,k:kill;

    F10,q: Exit

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6B/77/wKioL1UuaVGBWxvRAAYNz86JuDc961.jpg "/>

Action Example: After you type U, the process for all users is listed

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6B/7B/wKiom1UuZ_6Sm6WtAATqPhJePJI166.jpg "/>

Press the arrow keys to move up and down Select users, select Apache to view related process information

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6B/77/wKioL1UuaVGSvFzfAAIgaLD2sbU323.jpg "/>

Press the S key to view system call information for the process

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6B/7B/wKiom1UuZ_6DweQFAABwhFPUaVc886.jpg "/>

Press the Q key to indicate back, and then press L to view Apache open files

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6B/77/wKioL1UuaVGCVovbAATedO-J73k125.jpg "/>


Glances:

Glances is an open source command line system Monitoring tool for Linux and BSD, which is developed using the Python language to monitor CPU, load, memory, disk I/O, network traffic, file system, system temperature and more.

Glances installation:

Yum y install glnces

Common options:

-B: Display the NIC device exchange rate in BYTE/S

-D: Turn off the disk I/O function module

-f/path/to/somefile: Setting the location and format of the output file

-o {html or CSV}: Set output mode

-M: Prohibit display of the Mount function module

-N: Turn off network function module

-r: Close Process List Function module

-F #: Set delay Duration, default is 3 seconds

-1: Display load data information for each CPU separately


650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6B/7B/wKiom1UuZ__CHX5TAAPiLqArRyg695.jpg "/>

Display Help information

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6B/7B/wKiom1UuaADD1g7ZAAMLBgosY6U372.jpg "/>


Glances Remote mode:

That can work in C/s mode:

Server: Start glances in listening mode

Client: Start glances in remote mode, connect to the specified server remotely, and correlate data on the server

Service mode:

Glances [OPTIONS] ipaddr

-B: Used to indicate the local address of the listener;

-S: Set glances run mode to server
-P Port: Set the Run port by default is 61209

Client mode:

Glances c ipaddr

-C: The address of the server used for the connection;


Example: server-side boot listener address

[Email protected] ~]# glances-s-P Redhat

The Glances server started 0.0.0.0:61209

Client Connection Server

[Email protected] ~]# glances-c 172.16.4.100

Error:connection to server failed. Bad password.

[Email protected] ~]# glances-c 172.16.4.100-p Redhat



DstatMulti-function system resource monitoring tool integrates Vmstat,iostat,netstat,and ifstat four tools

Install Dstat:

Yum y install Dstat

syntax:dstat [-AFV] [options:] [Delay [Count]]

Common options and display results:

-C: Displays CPU statistics:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6B/77/wKioL1UuaVPh7DkNAABiVBfjgI4043.jpg "/>

Parameter meaning:

usr: Percentage of CPU time consumed by user processes

SYS: The percentage of CPU time consumed by the kernel process

Percentage of IDL:CPU in idle state

Wai:io percentage of CPU time waiting to be consumed

HiQ: Hard Interrupt

Siq: Soft Interrupt

-D: Show disk read/write rate:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M02/6B/7B/wKiom1UuaADAYE83AAArfpVIAO8492.jpg "/>

Parameter meaning:

READ: Reading rate

Writ: Write rate

-G: Displays page-related rate data:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6B/77/wKioL1UuaVOCvR3pAAAppjf_pkU239.jpg "/>

Parameter meaning:

In: Place paging

Out: Removing paging

-I: Show interrupt-related rate data:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6B/7B/wKiom1UuaACiJFckAAAr3dlOSuc602.jpg "/>

-L: Show average load:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6B/77/wKioL1UuaVPxaG4hAAAyiMXtcTQ318.jpg "/>


-M: Displays memory-related statistics:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M00/6B/77/wKioL1UuaVPQHkyNAABpdXvfKJM691.jpg "/>

Parameter meaning:

User: To use memory

Buff: Buffer

Cach: Caching

Free: Idle Area


-N: Displays network-related statistics:

650) this.width=650; "src=" http://s3.51cto.com/wyfs02/M01/6B/7B/wKiom1UuaACw7HHWAAA9-7038UQ481.jpg "/>

Parameter meaning:

RECV: Received Data

Send: Data sent out


There are many other options:

-N: Displays the associated rate of the specified interface NIC

-P: Show process-related rate data, including queue length

-R: Shows the rate of IO requests

-S: Show swap-related data

-Y: Displays system-related data, including interrupts and process transitions

--TOP-CPU: Show CPU-intensive processes

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

--top-io: Shows the process that consumes IO most

--top-mem: The most memory-intensive process

--IPC: Show rate data related to interprocess communication

--raw: Displaying data related to RWA sockets


More features to view the man document

This article from "Plum blossom fragrance from bitter cold" blog, please be sure to keep this source http://ximenfeibing.blog.51cto.com/8809812/1633112

HTOP/DSTAT/GLABCE Tools Introduction

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.