mahender
mahender

Reputation: 11

100 requests per minute for a duration of 20 minutes - Load/performance testing

I am doing load test on my system using Jmeter. the requirement is I need to generate 150 requests per minute for a duration of 20 minutes constantly. I tried with below approaches

  1. I tried by giving this configuration. No of threads - 3000 [150 req/min * 20 mins] rampup period - 1200sec [20mins * 60]

    But here test stopped after creation of 2004 thread. by giving this error

    Failed to start the native thread for java.lang.Thread “Thread Group 1-2004” Uncaught Exception java.lang.OutOfMemoryError: unable to create native thread: possibly out of memory or process/resource limits reached in thread Thread[#51,StandardJMeterEngine,6,main]. See log file for details

  2. Used concurrency thread group with below details Target concurrency - 150 ramp up time - 1 min hold target rate time - 20 mins

    but here no of samples collected are more than 3000 [150 req *20 sec] which i feel is not correct

Is it possible to create exact load according to my requirement in Jmeter(150 req/min ->duration of 20 mins) or should I explore other tools like locust??

  1. tried with precision timers (attaching screen shots)

enter image description here

enter image description here

enter image description here

Upvotes: 0

Views: 2134

Answers (1)

Dmitri T
Dmitri T

Reputation: 168147

Your understanding of relationship between users and hits per second is not correct.

When JMeter thread (virtual user) is started it begins executing Samplers as fast as it can. The throughput (number of requests per second) mainly depends on the response time.

For example:

  • you have 1 user and 1 second response time - the load will be 1 request per second
  • you have 1 user and 2 seconds response time - the load will be 0.5 requests per second
  • you have 2 users and 2 seconds response time - the load will be 1 requests per second
  • you have 4 users and 2 seconds response time - the load will be 2 requests per second
  • etc.

If you want to slow down JMeter to the desired number of requests per minute it can be done using Timers.

For example:

Upvotes: 0

Related Questions