11 Graphical monitoring extension of jmeter

Flaws of Jmeter's default listener

Jmeter's default listener is relatively sound in terms of tables and text, but it is inferior in graphical monitoring, especially in monitoring Windows or Linux system resources. However, as an open source tool, jmeter allows to expand the corresponding functions through plug-ins to make up for its own shortcomings.

Graphical monitoring extension of Jmeter

1. Download the plugin. Official website (https://jmeter-plugins.org/downloads/old/) to download JMeterPlugins-Standard-1.4.0.zip and ServerAgent-2.2.1.zip (can be downloaded from Baidu).

2. Put the JMeterPlugins-Standard.jar package in JMeterPlugins-Standard-1.4.0.zip in the apache-jmeter-4.0\lib\ext directory.

3. Restart Jmeter and check if the thread group and the listener appear at the beginning of jp, it means the loading is successful.

4. Unzip ServerAgent-2.2.1.zip, copy the ServerAgent directory and the following files to the server we tested, and then click to open (double-click to run startAgent.bat under windows, run the startAgent.sh command under linux), the default port is 4444 (note whether the port is occupied, generally do not need to be modified). Especially for the erfMon Metrics Collector test be sure to start the ServerAgent.

5. Common functions

Monitor system resources, including CPU, memory, IO, etc.: Add jp@gc to the listener - PerfMon Metrics Collector

Monitor Hits per Second: Add jp@gc - Hits per Second to the listener

The listening throughput rate is the number of transactions per second: add jp@gc - Transactions per Second to the listener

You can right-click on the chart and select Save Image.

6. Note: jmeter reports an error after adding jp@gc - PerfMon Metrics Collector?

2018-04-25 11:53:06,519 ERROR o.a.j.JMeter: Uncaught exception:
java.lang.NoSuchMethodError: org.apache.jmeter.samplers.SampleSaveConfiguration.setFormatter(Ljava/text/DateFormat;)V

The jmeter version I use is 4.0. After following the above steps, I ran the script and found an error. Baidu later found that it was a version problem. It seems that version 4.0 does not have the setFormatter function (it is said on the Internet that Jmeter 3.2 does not have the setFormatter function), but I had to re-download it. A 3.1 version. Everything works fine after that.

Guess you like

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