• Plug-in download and installation
  • Thread group:
    • 1. Ultimate Thread Group
    • 2. Stepping Thread Group
  • The listener
    • Transactions per Second
    • Response Times Over Time

Plug-in download and installation

1. Access the official website of JMeter Plugins: jmeter-plugins.org/ and download the plugins-manager.jar file.

2. Place jar files in lib/ext under JMeter installation directory.

3. Restart JMeter. In Options–>Plugins Manager, you can see the Plugins page below, showing the installed and installable Plugins.



Thread group:

JMeter’s own thread groups do not allow for complex test scenarios, and can only be set to a fixed number of threads, which is not possible for such inrush threads. JMeter Plugins provides two Thread Group elements that support complex scenarios, Ultimate Thread Group and Stepping Thread Group.

1. Ultimate Thread Group

Ultimate Thread Group You can set tasks for multiple threads as follows:

The first task: 10 threads start in 10 seconds, run for 1800 seconds, and finish in 10 seconds;

Second task: 10 threads start and finish in 10 seconds at 620s, run for 1200 seconds, and finish in 10 seconds;

The third task: 10 threads start and finish in 10 seconds at 1240 seconds and finish in 10 seconds after running for 600 seconds.

In this way, a surge scenario is formed, and 30 threads are started three times, which is a stability test scenario. The thread task scenario is shown below.



2. Stepping Thread Group

In the Ultimate Thread Group setting, the Initial Dealy value needs to be calculated each time, which is cumbersome. Stepping Thread groups is simpler.

The specific scene is as follows:

A total of 100 threads are added in a stepwise progression, loading 20 threads every 5 seconds until 100 threads are added.

Each ladder runs for 600 seconds, and the last ladder runs for 1,000 seconds, or 1,000 seconds when 100 threads are finally concurrent.

It ends up stopping 10 threads per second.

This is a typical load scenario, continually increasing the load to check performance under different loads.



The listener

Transactions per Second

TPS: transactions per second. One of the two most important metrics in performance testing. Indicates the maximum service processing capability of the system at the same time. A higher value indicates the stronger the system processing capability.

The function of this plug-in is to monitor and view the TPS performance of the server ———— such as overall trend, real-time average trend, stability, etc., during the execution of the test script.

In the JMeter installation package itself, the monitor provides components such as aggregate reports and some real-time data, but it is a bit weak compared to the higher performance testing requirements.

Where, the X-axis is the test execution duration, and the Y-axis is the number of transactions at the current time. The number of transactions per second curve of a certain stress test is shown as follows:



Response Times Over Time

TRT: Transaction response time, another of the two most important metrics in performance testing. The main function of the plug-in is to monitor and view the real-time average value of response time and the trend of the overall response time during the execution of the test script.

On the x axis is the test execution duration and on the Y axis is the transaction response time. The overall response time is shown below.