Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to fire 10 requests per second in jmeter

Tags:

jmeter

How to fire 10 requests per second instead of waiting for previous threads to complete in jmeter.

Need to hit 1000 times,

Currently the below configuration in Thread Group, Number of users : 10 Loop :100

I guess the thread is waiting to get response even after second.

But I need to fire 10 requests per second irrespective of response.

Constant Throughput Timer will be useful to do this ? if that is the case what configuration I should provide .

Any help is highly appreciated..

like image 679
Beginner Avatar asked May 22 '15 05:05

Beginner


1 Answers

Yes, Constant Throughput Timer will definitely help.

  1. Put 600 in Target Throughput field (10 requests/second * 60 seconds)
  2. Change "Calculate Throughput based on" to be All active threads
  3. Make sure that you have enough threads. Personally I would increase it at least to 20 as JMeter is not capable of kicking off extra threads to generate the requested throughput, it can only pause threads to limit the load to defined value
  4. Make sure that your tests lasts long enough. Constant Throughput Timer is quite accurate on "minute" level so your test needs to last for at least 1 minute. Also consider reasonable ramp-up and ramp-down values to avoid "spikes"

See How to use JMeter's Throughput Constant Timer guide for more detailed explanations and instructions.

By the way, there is an enhanced version called Throughput Shaping Timer available at JMeter Plugins bundle, maybe it'll be easier to use.

like image 152
Dmitri T Avatar answered Nov 11 '22 21:11

Dmitri T