Ten (2) nload command, monitor IO performance, free command, PS command, netstat view network status

Source: Internet
Author: User

nload Command (view network card traffic, with Sar-n DEV)

(The system does not install this toolkit by default, yum install-y nload, install nload before installing epel-release)

Use Nload to view network card information, you can see access to the network card information, press the Q key to exit.


Monitoring IO Performance (disk)


Installation: Sysstat package will be installed with Iostat (Iostat and SAR belong to a package)

Iostat-x

%util high value (insufficient disk IO), rkb/s and wkb/s are also very high

%util: As a disk performance judgment

Iotop (see which process is frequently read and write on disk)

First install Yum install-y iotop


Free command (view memory usage)


Free

Free-h (automatically displayed in the appropriate units)

Buff: Buffer cache: Caching

Formula: Total=used+free+buff/cache

avaliable contains free and buffer/cache remaining parts



PS command

(View system process, equivalent to Task Manager under window)


PS aux (View all processes of the system)

Ps-elf and PS aux almost


PID of the process

The Kill + process PID can kill a process


Ls-l/proc/ Process PID can be viewed to the start of the process (directory)--"for the benefit of other virus intrusion view illegal process."



Stat Description:

D a process that cannot be interrupted

The process of R run state

S Process in sleep state

T pause, Stop the process

Z Zombie Process

+ Foreground Process

< high-priority processes (processes are high-priority words will take precedence when CPU is used)

N Low-priority processes

Memory paging is locked in memory

S master Process

L Multithreading Process




View network Status

Netstat (view TCP/IP communication status)

Listening port: For other machines to exchange data with our server, access to the service, you need to provide a listening port.


Viewing port: NETSTAT-LNP (L:listen)

NETSTAT-LTUNP (View only TCP and UDP states)



Netstat-an (view full connection status)


!!! Command: netstat-an | awk '/^tcp/{++sta[$NF]} END {for (key in STA) print key, "\ T", Sta[key]} '

Established: Number of concurrent connections indicates how many clients and service sides are communicating at the same time




Ten (2) nload command, monitor IO performance, free command, PS command, netstat view network status

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.