Thai pants are hot! ! ! I also learned various ways to monitor the server

Great! You can learn various methods of monitoring the server again.

For example, there are several ways to use linux commands to monitor

Method 1: Dynamically monitor the top command

picture

Method 2: Memory monitoring free -m

picture

Method 3: disk iostat -d 2 3

picture

And use the jmeter plug-in to monitor the server

We can use the ServerAgent plugin to collect data, just like a little spy.

picture

In this way, use jmeter to collect and display the data.

picture

If you use the Nmon plug-in to monitor server technology, we can start Nmon to monitor in real time

picture

You can also collect monitoring data. In the actual performance test, we need to record the data within a period of time, such as:

Generate nmon report #nmon -s20 -c3 -f -m /usr/local/nmon_output and use nmon analyzer to analyze.

The blue line in the line graph is the change of CPU occupancy; the pink line is the change of disk IO;

picture

1. cpu detailed data

CPU_ALL page: On this page, you can see the overall CPU data at each monitoring point as shown in the figure below, including User%, Sys%,

Wait%, Idle%, CPU%, and CPUs (cpu number) and corresponding charts.

picture

2. Disk data information

DISK_SUMM page: record the number of disk reads and writes and IO times at each monitoring time point, as well as some calculated values;

As shown in the figure below, including the following details:

3. Memory details

MENM page: This page contains information data and charts of various aspects of the memory at each monitoring time point as shown in the figure below. The main information is as follows:

picture

Linux server technology can also be monitored through Grafana

Use Node_exporter to collect linux data and send it to prometheus and display it through grafana.

picture

Finally, there is Grafana monitoring mysql technology

Use mysqld_exporter to collect mysql data and send it to prometheus and display it through grafana.

picture

Finally: The complete software testing video tutorial below has been sorted out and uploaded, and friends who need it can get it by themselves [Guaranteed 100% free]

Software Testing Interview Documentation

We must study to find a high-paying job. The following interview questions are the latest interview materials from first-tier Internet companies such as Ali, Tencent, and Byte, and some Byte bosses have given authoritative answers. Finish this set The interview materials believe that everyone can find a satisfactory job.

Guess you like

Origin blog.csdn.net/AI_Green/article/details/132494662
Recommended