Linux Sysstat performance monitoring tool installation and 8 common command usage examples

888u

Last update at :2024-07-11,Edit by888u

Sysstat, a software tool package commonly used in Linux system servers, can be used to monitor server performance. For example, it can monitor CPU, hard disk, network and other data, and we can use it to analyze server performance and resource usage efficiency. Snail will learn and sort out the installation and commonly used commands of the Sysstat monitoring tool package in this article.

Snail has not used these tools before (it requires too much learning and basic knowledge). In this article, I will simply record the Sysstat installation process and several commonly used commands. There are still many similar software and tools. , we should choose based on our familiarity and liking, and whether we really need it.

Snail has also shared many related monitoring tools in his blog before:

1. Use Stat Hub tool to build your own VPS server monitoring list

2. Evaluation and comparison of free website monitoring services in mainland China – Monitoring Bao, Alibaba Cloud Monitoring, Baidu Cloud Observation, 360 Monitoring, etc.

3. Install Log.io Linux VPS monitoring software in CentOS 7 environment

First, installation of Sysstat tool

1. Git installation package installation

yum install -y gitgit clone git://github.com/sysstat/sysstatcd sysstat./configuremake &&make install

2. Check whether it is successful

sar -V

After the installation is complete, use the command to check whether you can see the current version.

Seeing the picture above means that Sysstat is successfully installed.

Second, common uses of Sysstat monitoring tool

Snail (laozuo.org), like many novices, has never been exposed to Sysstat before. Although it has been seen in some documents, it has never been used. Here, 10 commonly used commands are compiled based on the reference documents.

1. sar -u 1 3

Record the CPU load of three attempts.

2. sar -P ALL 1 1

Core CPU usage.

3.sar -r 1 3

4. Swap space usage (sar -S 1 3)

5. IO situation (sar -b 1 3)

6. File exchange activity information (sar -w 1 3)

7. Report running queue and average load (sar -q 1 3)

8. Network statistics (sar -n DEV 1 1)

To summarize, the above is the installation and simple usage record of the Sysstat monitoring tool package. If you need detailed usage, you need to check the official documentation and detailed explanation of specific usage parameters.

Recommended site search: View IP, station group server rental, Hong Kong server, registration space, Hong Kong cn2 server, in domain name, US host rental, mainland China station group server, leased host, local ip,

Linux Sysstat performance monitoring tool installation and 8 common command usage examples

All copyrights belong to 888u unless special state
取消
微信二维码
微信二维码
支付宝二维码