Linux System performance metrics monitoring

Source: Internet
Author: User
Tags disk usage

Real-time monitoring-network monitoring: netstat-netstat command for displaying native network links, running ports, routing tables, and more

Netstat parameter description:

-N: Reject display aliases, can show all numbers converted to digital

-L: Lists only the service states that are in listen (listening)

-P: Shows the name of the program that established the related link

-T: Show TCP-related options

-U: Show only UDP-related options

-I: Display information for auto-match interface

-C: Execute the netstat command every other fixed time

Common:

[Email protected]:~# NETSTAT-NTLP (typically used to see if the running port is listening)

[Email protected]:~# netstat-i (typically used to see the size of the network transmission and there are no errors)

[Email protected]:~# netstat-i-C 1 (print once every second)

Real-time monitoring-disk monitoring: Iostat is the system disk IO operation monitoring, its output mainly shows the disk read and write operation statistics. At the same time, the use of the CPU

Netstat parameter description:

-X: output Specifies the disk device name to be counted, default to all disk devices, default to all disk devices

Example:

[Email protected]:~# iostat
Linux 4.4.0-105-generic (AGU) 06/25/2018 _x86_64_ (1 CPU)

AVG-CPU:%user%nice%system%iowait%steal%idle
0.14 0.00 0.16 0.01 0.00 99.69

Device:tps kb_read/s kb_wrtn/s Kb_read Kb_wrtn
VDA 0.18 0.63 0.95 334213 502920

[Email protected]:~# iostat-x
Linux 4.4.0-105-generic (AGU) 06/25/2018 _x86_64_ (1 CPU)

AVG-CPU:%user%nice%system%iowait%steal%idle
0.14 0.00 0.16 0.01 0.00 99.69

device:rrqm/s wrqm/s r/s w/s rkb/s wkb/s avgrq-sz avgqu-sz await r_await w_await SVCTM%util
VDA 0.00 0.06 0.04 0.14 0.63 0.95 17.43 0.00 2.85 1.46 3.24 0.39 0.01

[Email protected]:~# iostat-x VDA 1 2
Linux 4.4.0-105-generic (AGU) 06/25/2018 _x86_64_ (1 CPU)

AVG-CPU:%user%nice%system%iowait%steal%idle
0.14 0.00 0.16 0.01 0.00 99.69

device:rrqm/s wrqm/s r/s w/s rkb/s wkb/s avgrq-sz avgqu-sz await r_await w_await SVCTM%util
VDA 0.00 0.06 0.04 0.14 0.63 0.95 17.42 0.00 2.85 1.46 3.24 0.39 0.01

AVG-CPU:%user%nice%system%iowait%steal%idle
0.00 0.00 0.99 0.00 0.00 99.01

device:rrqm/s wrqm/s r/s w/s rkb/s wkb/s avgrq-sz avgqu-sz await r_await w_await SVCTM%util
VDA 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00 0.00

iostat-x VDA 1 2 command meaning: Every 1 seconds print the VDA this disk usage information, print two times altogether.

%util indicates CPU busy, higher and busier

Universal Command-SAR

(System Activity Report) is one of the most comprehensive systems performance analysis tools available on Linux and can be used to report system activity in many ways.

Performance monitoring range for SAR

1) Read and write of files, usage of system calls, disk I/O, CPU efficiency, memory usage, process activity and IPC-related activities, etc.

SAR syntax:

SAR [Options] [-A] [-o file] t [n]

In the command line, the N and t two parameters are combined to define the sampling interval and number of times, T is the sampling interval, is a required parameter, n is the number of samples, is optional. The default value is 1,-o file means that the command results are stored in a binary format in a file, where file is not a keyword and is a file name. Options is the command-line option.

SAR options:

-A: The sum of all reports.

-U:CPU Utilization

-V: Process, node, file, and lock table state.

-R: Show system memory usage

-B: Memory Paging situation

-B: Buffer usage

Linux System performance metrics monitoring

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.