How to pause JMeter?

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

How to pause JMeter?

jmeter tea
Hello,

I'm executing JMeter task with several requests for a few hours on a server,

I want to be able to pause execution for a few seconds/minutes and resume
when server finish restarted or other maintenance

Is there a way to signal JMeter to pause and resume its execution?

Thank you
Reply | Threaded
Open this post in threaded view
|

Re: How to pause JMeter?

Karthik Ravindran
Yes, you can use flow control action sampler for this purpose .

Thanks,
Karthik.

On Tue, May 26, 2020, 13:33 Jmeter Tea <[hidden email]> wrote:

> Hello,
>
> I'm executing JMeter task with several requests for a few hours on a
> server,
>
> I want to be able to pause execution for a few seconds/minutes and resume
> when server finish restarted or other maintenance
>
> Is there a way to signal JMeter to pause and resume its execution?
>
> Thank you
>
Reply | Threaded
Open this post in threaded view
|

Re: How to pause JMeter?

glinius@live.com
In reply to this post by jmeter tea
You cannot "pause" JMeter, the only way to stop it sending the requests is
using  Constant Throughput Timer
<https://jmeter.apache.org/usermanual/component_reference.html#Constant_Throughput_Timer>  
with a throughput defined via  __P() function
<https://jmeter.apache.org/usermanual/functions.html#__P>   which will allow
to control the number of hits per minute using  Beanshell Server
<https://jmeter.apache.org/usermanual/best-practices.html#beanshell_server>  

Check out  How to Change JMeter┬┤s Load During Runtime
<https://www.blazemeter.com/blog/how-to-change-jmeters-load-during-runtime>  
article for more details.

Alternative option is using  Filter Results Tool
<https://jmeter-plugins.org/wiki/FilterResultsTool/>   to remove the time
span when your server was restarting from the .jtl results file.

And finally you can suspend/resume any process by means of the operating
system, i.e.  kill <https://www.man7.org/linux/man-pages/man2/kill.2.html>  
for Unix and derivatives,  DebugActiveProcess
<https://docs.microsoft.com/en-us/windows/win32/api/debugapi/nf-debugapi-debugactiveprocess>  
for Windows, etc.



--
Sent from: http://www.jmeter-archive.org/JMeter-User-f512775.html

---------------------------------------------------------------------
To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]