You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by harschel <ha...@hotmail.com> on 2007/08/18 07:12:52 UTC

How to stop the jmeter script (.jmx file) from the linux machine.

Hi,
I am running jmeter from the linux machine .To run the script i am giving
the command 

jmeter -n -t my_test.jmx

But i dont know the command to stop the jmeter script.
In windows we can do with the "Stop" menu item .What is the corresponding
command in the linux to stop the test.

Also in case of remote testing, how would I start all the remote server at
the same time ..i mean whats the command and how to stop all the remote
server .
If you can tell how to start and stop individual server ,that would be great
help.

Thanks for any suggestion in advance.
--harschel 
-- 
View this message in context: http://www.nabble.com/How-to-stop-the-jmeter-script-%28.jmx-file%29-from-the-linux-machine.-tf4289216.html#a12210660
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: How to stop the jmeter script (.jmx file) from the linux machine.

Posted by sebb <se...@gmail.com>.
On 18/08/07, harschel <ha...@hotmail.com> wrote:
>
> Hi,
> I am running jmeter from the linux machine .To run the script i am giving
> the command
>
> jmeter -n -t my_test.jmx

This is a non-GUI run - the intention is that a non-GUI run will stop
of its own accord. There is no direct way to stop it, other than
killing the process.

However if you download BeanShell you can use the BeanShell server and
connect to that to stop the test,

See

http://jakarta.apache.org/jmeter/usermanual/best-practices.html#beanshell_server

Read the warnings regarding the security of the server.

The command to stop JMeter using BeanShell is:

org.apache.jmeter.engine.StandardJMeterEngine.stopEngineNow();

See extras/startup.bsh for additional details.

> But i dont know the command to stop the jmeter script.
> In windows we can do with the "Stop" menu item .What is the corresponding
> command in the linux to stop the test.
>
> Also in case of remote testing, how would I start all the remote server at
> the same time ..i mean whats the command and how to stop all the remote
> server .

>From non-GUI mode:

jmeter -n -t text.jmx -r

see

http://jakarta.apache.org/jmeter/usermanual/get-started.html#options

> If you can tell how to start and stop individual server ,that would be great
> help.

If you are running the client in GUI mode, then just use the remote
stop command.
Otherwise the same applies as above - the test is intended to stop of
its own accord. You could start BeanShell servers on the the servers
and use it as above; there is currently no way to remotely stop the
servers from a non-GUI client.

> Thanks for any suggestion in advance.
> --harschel
> --
> View this message in context: http://www.nabble.com/How-to-stop-the-jmeter-script-%28.jmx-file%29-from-the-linux-machine.-tf4289216.html#a12210660
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org