Common commands for Linux performance analysis

Source: Internet
Author: User
Tags disk usage

1,uptime View System is responsible for
2,more Page view file, enter displays the next line, space shows the next page, F shows the next screen, and B displays the previous screen content.
3,top command to view the system situation, press SHIF + H to view the load of the current thread.
The 4,top-p PID can view the system load of a thread based on a process.
5,df-h view hard disk usage,-h indicates the output is formatted in units.
6,du-d l-h Folder path: View the space occupied by the specific directory. -D indicates a recursive depth, and L is the next directory of the current directory with recursion depth.
7,sar-n DEV 1 1

If the hint Sar:command not found description is not installed, the CentOS system executes the Yum install Sysstat command to be mounted. -N Indicates the status of the network, and Dev represents the view of traffic for each NIC.

The first 1 indicates that the first second is sampled once, and the second 1 indicates a total extraction. When the command is executed, the current network condition is displayed, where Lo represents the local loopback network, eth0 represents the network card, and RXPCK/S indicates that each second receives

Number of packets, TXPCK/S indicates the number of packets sent per second rxkb/s represents the number of bytes received per second, txkb/s represents the number of bytes sent per second, rxcmp/s represents the number of compressed packets received per second, and TXCMP/S indicates that every second

The number of compressed packets sent. RXMCST/S represents the number of broadcast packets received per second, and average represents the average of multiple samples.
Sar–u Viewing CPU Usage
Sar–q Viewing average load
Sar–r Viewing memory usage
Sar–w Viewing page Exchange occurrences
Sar–b viewing statistics for I/O and transfer rates

For more information, please refer to: http://www.youxijishu.com/nd.jsp?id=100&_np=2_520

Common commands for Linux performance analysis

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.