当前位置:网站首页>JMeter load test finds the maximum number of concurrent users (including step analysis)

JMeter load test finds the maximum number of concurrent users (including step analysis)

2022-06-11 20:49:00 Test Xiaohang

Load test concept

Gradually increase the number of concurrent users , Find out the maximum acceptable number of concurrent users of the system under test , And investigate the change of system performance .

Overall script design :

Scenario introduction :

1. First, use the plug-in manager to download the plug-in jpgc - Standard Set, And then restart jmeter

2. Add thread group [email protected] - Stepping Thread Group

3 Add request samplers and other configuration components under the thread group , And fill in the interface parameters , The tested interface in this article is the registered interface

4. Add listener :

[email protected] - Active Threads Over Time( Graph of the number of active threads over time )

[email protected] - Response Times Over Time( Response time versus time )

[email protected] - Transactions per Second(tps Time variation diagram )

[email protected] - Stepping Thread Group Fill in data , Scene is in 5 Increase in seconds 10 Number of concurrent users , And run 30 second , And continue to 5 Increase in seconds 10 Number of concurrent users , Repeat the cycle , Until the number of concurrent users reaches 50 Run the script after 60 second . Then at every 1 Second reduction 5 Number of concurrent users , Until reduced to 0, End the script .

6. Run the script for the first time , Observe the data after completion :

  It is known from the graph that :1. When the number of concurrent users is 20 when , The average response time exceeds 1.5 second

                       2.tps There is no obvious downward trend in the whole process , There is no continuous error report

  Run script analysis for the first time : So come to the conclusion , The maximum number of concurrent users of the system is 10~20 Section

We have obtained that the maximum number of concurrent users of the system is 10~20 Section , How much is it ? Next, reduce the step size , And carry out the second test

[email protected] - Stepping Thread Group Fill in data , The scene is based on 10 Based on the number of concurrent users , stay 1 Increase in seconds 1 Number of concurrent users , And run 30 second , And continue to 1 Increase in seconds 1 Number of concurrent users , Repeat the cycle , Until the number of concurrent users reaches 20 Run the script after 60 second . Then at every 1 Second reduction 5 Number of concurrent users , Until reduced to 0, End the script .

 8. Run the script a second time , Observe the data after completion :

 

 

It is known from the graph that :1. When the number of concurrent users is 17 when , The average response time exceeds 1.5 second

                       2.tps There is no obvious downward trend in the whole process , There is no continuous error report

  Run script analysis for the second time : So come to the conclusion , The maximum number of concurrent users of the system is 16

原网站

版权声明
本文为[Test Xiaohang]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/03/202203011724192439.html