I have a jmeter test plan that is running in a non gui mode on linux to test a server. I want to pause the jmeter test plan for some time to carry some maintenance on server and want to resume the test plan from where it got paused.
I don't know when to stop the test plan before hand, so i can't use timers to code in jmeter
Is there a pause button on jmeter GUI and NON GUI mode to pause the test plan
Linux solution. If you're running Linux you can use kill
command like:
kill -STOP 1234
- pause JMeterkill - CONT 1234
- resume JMeter
replace 1234
with the associated Java process ID
JMeter solution. You can add Constant Throughput Timer to your test plan and set the desired throughput in "requests per minute" using __P() function. When you need to suspend JMeter - you can set the desired throughput to 0
via Beanshell Server. Check out How to Change JMeter´s Load During Runtime article for comprehensive information if needed.
Collected from the Internet
Please contact [email protected] to delete if infringement.
Comments