Another coder
Another coder

Reputation: 398

Pause all threads for a specific duration in regular interval in Jmeter

I have a thread group with
No. of users: 3
Ramp up period: 2
Loop count: forever

Having single Http request

My requirement is to pause all threads for 1 minute at regular interval of 30 minutes. I tried think time, and other timers as well but it doesn't work.

My Jmeter version is 5.1.1

Any help will be highly appreciated.

Upvotes: 1

Views: 1441

Answers (2)

Dmitri T
Dmitri T

Reputation: 168217

  1. Add Runtime Controller to your Test Plan and set its "Runtime (seconds)" to 1800

    enter image description here

  2. Put your HTTP Request sampler as a child of the Runtime Controller
  3. Add Flow Control Action sampler after the Runtime Controller and set it to "Pause" for 60000 milliseconds

    enter image description here


Just in case be informed that as per JMeter Best Practices you should always be using the latest version of JMeter so consider upgrading to JMeter 5.2 (or to the latest stable version from JMeter Downloads page) as soon as possible

Upvotes: 1

ararar
ararar

Reputation: 983

You can use Ultimate Thread Group to simulate that, but threads will exit the iteration and start a new one after 1 minute (not a pause).

enter image description here

Upvotes: 0

Related Questions