I'm using JMeter (5.4.3).

I noticed that the Duration of Thread group isn't working.

And here's an example of what I've tried. Number of threads: 300 I've Checked Specify Thread lifetime checkbox .. Duration : 5 (So it supposed to be ended in 5 seconds)

The result is that the test ended in 33 seconds ..

How can I solve this issue?

1 Answer 1


JMeter "asks" threads to stop when the lifetime ends.

If response time is higher than the test duration it might be the case that JMeter will wait for the response prior to finishing the thread.

If you need to stop the test in 5 seconds make sure to limit the JMeter's timeout to be 5 seconds maximum.

If you're using HTTP Request samplers - the setting lives under "Advanced" tab

enter image description here

If you have multiple HTTP Request samplers - it's a good idea to use HTTP Request Defaults so you could define the timeout in one place.

Other JMeter Configuration Elements and/or Samplers also have timeout settings.

If there are no timeouts - there is stoptest script which could be used for terminating the running test (be aware that it will be "force" termination and may result in false negative results)

  • Thank you for your informative answer
    – user301242
    Dec 31, 2021 at 16:02

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.