user4021949
user4021949

Reputation: 263

Loadtesting in burst mode in Jmeter

I am running my load test for a duration of 1 hour,in between the test I want a scenario to run for a duration of 1 minutes at regular interval of 15 minutes.

In jmeter,currently I am able to simulate for all the others scenarios except for the burst mode. How do I keep the delay for 15 minutes and trigger the request for duration of 1 min? How do I achieve the TPS for the burst? Currently I have to manually trigger jmeter script.

Upvotes: 5

Views: 3189

Answers (2)

a4bike
a4bike

Reputation: 639

I came here since I had the same issue or similar issue of "simulating" burst like request during the load test. I tried to follow the accepted answer but didn't get it to work (perhaps I misunderstood some steps), anyway; I based my solution in @esteveavi comment Loadtesting in burst mode in Jmeter from the original post above. And ended up using JMeter's "Ultimate Threat-Group" plugin with something like the following test plan set up:

first thread group having a constant TPS

second thread group having bursts starting at different times

Upvotes: 0

Dmitri T
Dmitri T

Reputation: 168002

I would suggest doing the following:

  1. Add a separate Thread Group.
  2. Configure ramp-up and thread count as required.
  3. Add a Constant Timer, set Thread Delay to 900 000 (15 minutes = 900 seconds, 1 second = 1000 ms)
  4. Add a Runtime Controller, set Runtime to 60.
  5. Add a Loop Controller, set Loop Count to Forever.
  6. Place your burst test logic under the Loop Controller.
  7. If you need to define requests per second rate during spikes use Constant Throughput Timer

Upvotes: 5

Related Questions