How to run 10 requests per second in jmeter
How to run 10 requests per second instead of waiting for previous threads to execute in jmeter.
Must be hit 1000 times
Currently the below configuration in a thread group, Number of users: 10 Loop: 100
I think the thread is waiting for a response even after the second one.
But I need to run 10 requests per second regardless of the response.
Will a persistent bandwidth timer be helpful for this? if so, what configuration should I provide.
Any help is appreciated.
source to share
Yes, a constant bandwidth timer will definitely help.
- Put
600
in Target Throughput field (10 requests / second * 60 seconds) - Modify "Calculate bandwidth based on"
All active threads
- Make sure you have enough threads. Personally, I would bump it up to at least 20, since JMeter is not able to drop additional threads to generate the requested bandwidth, it can only pause threads to limit the load to a certain value.
- Make sure your tests are running long enough. The constant bandwidth counter is accurate enough at the "minute" level, so your test should be at least 1 minute long. Also consider sensible fade-in and fade-out values ββto avoid spikes.
See How to Use JMeter Throughput Timer Timer for more detailed explanations and instructions.
By the way, there is an extended version called Time Shaping Timer available at JMeter Plugins , it might be easier to use.
source to share
You can also use Stepping Thread Group. This will help you specify the time and number of threads that will be started during this time interval.
https://jmeter-plugins.org/wiki/SteppingThreadGroup/
source to share