jmeter stress test----environment preparation (principle and use of PerfMon Metrics Collector and Server Agent)

We know that stress testing is actually simulating multiple concurrent requests to the server, and then comprehensively evaluating the pressure that the server can withstand through some performance indicators.

After going to the jmeter official website to download the client, it already comes with the relevant components of the stress test. The aggregated report after the stress test has obtained the various response time parameters we need, which is enough for us to locate a rough In order to better locate and analyze the bottleneck, you also need to look at the relevant performance indicators of the server, such as cpu, memory, IO read and write, and TPS.

The performance monitoring of the server is fully supported by jmeter. We need two things, one is a server agent that runs on the server to obtain relevant performance data and sends it to jmeter, and the other is jmeter to accept the server. An extension plug-in that displays the data passed by the Agent in the form of GUI.

1. Support more than 75 system indicators such as cpu, memory, IO, network, etc. 
2. Support GUI mode and non-GUI mode, you can save performance indicators in the form of files through configuration 
Principle: Because jmeter only supports tomcat, it supports the use of SIGAR open source library, this open source library supports every system


Well, knowing the relevant concepts, let's start configuring: 

1. Install Plugin Manager to see which plugins are installed

Download address: https://jmeter-plugins.org/wiki/PluginsManager/

After decompressing it into the lib/ext directory, start Jmeter and you can see it in the toolbar options, check the plug-ins that need to be installed, click the button at the bottom of the form [Apply Changes and Restart JMeter], I tried to no effect.


2. Go to https://jmeter-plugins.org/downloads/old/ to download JMeterPlugins-Standard-1.4.0.zip and JMeterPlugins-Extras-1.4.0.zip 
PS: The plugin1.4.0 of jmeter only supports jmeter3.2 Below, excluding 3.2.
Then unzip the two 1.4.0 zip packages, copy the jar files to the /lib/ext folder, and start jmeter.


3. Select jp@gc - PerfMon Metrics Collector and jp@gc - Transactions per Second as listeners, simply configure them, configure the IP and port to be monitored, ServerAgent defaults to port 4444, of course you can modify it, for example: ./startAgent .sh –udp-port 0 –tcp-port 3450 like this.


If you notice the blue link, you can open the help of the plugin. If you look closely, you will find that you also need to download a ServerAgent-2.2.1 package, which is used to run on the Agent you need to monitor.

Download address https://jmeter-plugins.org/wiki/PerfMonAgent/


Execute the bat file on windows


The default port is 4444, it is best not to modify

In the Host/IP column, write the IP or host name of the Agent you want to monitor. It is recommended to use IP

Port defaults to 4444

Metric to collect, select the resource you want to monitor, it is an optional box

The last column is the parameter, please refer to the help


Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325402284&siteId=291194637