Reputation: 11
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
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
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??
Upvotes: 0
Views: 2134
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:
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