Test jmeter a page for 5 minutes to complete the request 5000, and 90% of the response time less than 3s, and calculates the maximum number of concurrent

We need to understand:

5 minutes, to complete the request 5000, then request 1000 / min, about 17 requests / S, i.e. 1s in a request requires 17 times iteration;

method one,

The response time can be calculated from the number of iterations m 1s; number of threads disposed = 17 / m, Any number of iterations, the duration 300S; adding the TPS, the maximum number of concurrent = (single request response * Total number of requests) / Total operation hours;

a) to run a thread, see the response time;

Below, a response time of 695ms, 1s the number of iterations may request to 1.4, then you want to reach the 17 iterations / s, need to how to do it? The number of threads can be increased to 17/12 = 1.4;

 

 

b)

Second way, using bzm - Arrivals Thread Group (arrival thread group, automatically adjust the number of threads)

a) target rate set target TPS, ramp up time set acceleration time, ramp-up steps count the number of rising stage is provided, hold target rate time duration is provided to maintain the target;

FIG follows, viewed approximately 17 * 300 = 5100

 

 TPS 17 substantially transaction / s;

 

 Aggregate Report

 

 Active Thread Over Time (time-varying active threads), the thread can be seen that a maximum of 19, i.e., a maximum of 19 concurrent users;

 

Guess you like

Origin www.cnblogs.com/canglongdao/p/12611827.html