Linux System Management Preliminary (ii) IO, free, PS, netstat command editing

Source: Internet
Author: User
Tags disk usage

10.6 Monitoring IO Performance
10.7 Free Command
10.8 PS Command
10.9 Viewing network status
10.10 Linux under Grab Bag

First, Iostat and Iotop command

Iostat command and Iotop, command to see the system disk work, timely discovery of disk problems, these two tools are not the system comes with, the need for Yum installation
Where the Iostat command is in the same (SYSSTAT) package as the SAR command mentioned in the previous blog, you can use the Iostat command if you can use the SAR command.
Installation commands

Yum Install Epel Installing the Epel extension source first
Yum Install Sysstat Iotop

(a) Iostat command, see util if the value is too high, the disk is busy or there is a problem.

To view disk usage

Iostat-x


Pay attention to the value of the red, the system is explained below, anyway this value is very high the system reacts very slowly, either to change the hard disk, or to find out what caused the disk usage to soar.
%util Percentage of elapsed time during which I/O requests were issued to the device (bandwidth utilization for the device ). Device saturation occurs when the this value was close to 100%.

(b) Iotop, production see which process takes up more processes

On the specific server to see more clearly, disk read and write the most in the first row.

II. FREE command

To see how much memory is being used
Free-m free-h
Buff
Cache

III. PS Command View system process

Ps-aux

A zombie process scenario with Nigix enabled and the child process may enter the zombie process when the parent process is accidentally killed

Iv. netstat command

Netstat is used to view network status,
TCP Three-time handshake
Wave four times
NETSTAT-LNP Viewing the Listening port
Netstat-an Viewing the network connection status of the system
Ss-an View Network Connection Status
Little Tricks
Netstat-an|awk '/^txp

Five, packaging tools

You will need to grab the packet when the network is out of the ordinary
When the network has abnormal traffic, you need to catch the packet to see
such as seeing attacks, frequently accessing some ports some requests

Tcpdump
Usage Txpdump-nn

Wireshark

Linux System Management Preliminary (ii) IO, free, PS, netstat command editing

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.