Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

What are the linux performance monitoring tools?

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/01 Report--

In this issue, the editor will bring you what are the linux performance monitoring tools? the article is rich in content and analyzes and describes it from a professional point of view. I hope you can get something after reading this article.

1.uptime

This command visually shows the average load of the server in the past 15 minutes, 5 minutes, and 1 minute.

2.vmstat

Output vmstat information every 2 seconds for a total of 10 times.

Category procsswapiosystemcpur: number of processes running si: capacity swapped into memory bi: number of read blocks in: number of interrupts us: user b: number of blocked processes so: capacity swapped out memory bo: number of blocks written to cs: number of context switches sy: system id: idle wa: cpu waiting for io to complete

3.iostat

Output iostat information every 2 seconds for a total of 3 times

Number of block requests per second read by tpsblk_read/sblk_wrtn/sblk_readblk_wrtn sent disk Total number of block written per second read into block Total number of block written

Note: this command contains cpu information and disk IO information. Here are some parameters about disk IO. It should be noted that the first blk_read and blk_wrtn are the historical totals, followed by the number of changes per second.

4.top

Top-d 10 check the information every 10 seconds.

It contains load information, system running time information, cpu information, process information and so on.

5.free-m

= Mem line =

Total: total memory

Used: represents the total number of caches allocated for use (including buffers and cache), but some of these caches may not be actually used

Free: unallocated memory

Buffers: the number of buffers assigned by the system but not used

Cached: the number of cache assigned by the system but not used

= buffers/cache line =

Used-buffers-cached in the used:Mem line, the total amount of memory actually used

Free: the sum of unused buffers and cache and unallocated memory, which is the actual memory currently available to the system.

6.sar

You can view the real-time operation of each hardware of the server through the sar command. Since the meaning of some of the parameters displayed is similar to that of other commands, it will not be described in detail here, but will only focus on

A few parameters.

(1) sar-d displays disk real-time information

(2) sar-b to view the statistics of Imax O and transfer rate

(3) sar-u displays cpu real-time information

(4) sar-Q to view the average load

(5) sar-r to view memory usage

(6) sar-n DEV to check the traffic of Nic

Rxpck/s: packets received per second

Txpck/s: packets sent per second

Rxbyt/s: bytes received per second

Txbyt/s: bytes sent per second

Rxcmp/s: compressed packets received per second

Txcmp/s: compressed packets sent per second

Rxmcst/s: multicast packets received per second

These are the linux performance monitoring tools that Xiaobian shares with you. If you happen to have similar doubts, you might as well refer to the above analysis to understand. If you want to know more about it, you are welcome to follow the industry information channel.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report