Search code examples
jmeterperformance-testing

JMeter number of threads in a run


I am quite new to jmeter and try to do a performance test of my application. I want to generate 100 request per second scenario however my server takes 3-4 secs to respond to every request. I am running my test for 1 mins which means number of requests fired should be 60k within the time span. However jmeter actually waits for the response before it sends next request. Which is not what I am looking for.

How can I make sure that jmeter sends a new requests every second with 100 req/sec without waiting for the response so that the number of requests fired per min is 60k.

I am trying to use constant throughput timer with 60k as request per min, however that is not helping. Here is my test screenshot.

Jmeter test

EDIT

I have done like this Concurrency Thread group

And Throughput shaping timer being as Throughput shaping timer

So ideally I should get number of samples as 3000?, still not getting that.


Solution

  • Make sure you provide enough threads (virtual users) under Thread Group, "vanilla" JMeter won't kick off any extra threads if actual throughput is less than target one you specify in the Constant Throughput Timer.

    Another solution would be using Concurrency Thread Group along with the Throughput Shaping Timer. They can be tied together via feedback loop so if you use these test elements JMeter will start more threads if the current amount won't be enough to reach the desired requests per second rate.

    You can install both using JMeter Plugins Manager