7

Is it possible to run Jmeter on remote server without having Jmeter client on local machine. I mean can I just run jmeter.bat on remote machine from command prompt, so that it just run tests on remote server and store results in listener.jtl file over there, without any jmeter client on my machine.

6
  • How are you connecting to the remote machine? Commented May 15, 2012 at 18:31
  • its on private network. Jmeter should run on server and tester should be able to run it from cmd line Commented May 15, 2012 at 18:36
  • I don't plan to stress test webserver, so I'm not looking for distributed testing. I just wan't to install JMeter on 1 machine and let every tester to run it from their machine from command line. Commented May 15, 2012 at 19:08
  • If the remote machine is Linux, you may run JMeter like this ssh jmeter.sh ... Commented May 15, 2012 at 19:59
  • Its windows, is there a way ? Commented May 15, 2012 at 21:13

1 Answer 1

9

Here is the link: http://jmeter.apache.org/usermanual/remote-test.html.
Just go through the documentation available in the Jmeter's website.

The scenario given by you is some sort of "distributed testing" itself, where you want every tester to execute load testing from the machine where JMeter is installed.

For this purpose you must copy JMeter in each testers machine and make the entry of your JMeter server machine (Host Machine).

Now when every tester will run JMeter they will be able to run the load on the JMeter Host Machine.

jmeter -n -t script.jmx -l listener.jtl -R HostMachineIP
Sign up to request clarification or add additional context in comments.

4 Comments

That is precisely the problem, I don't want to copy JMeter on tester's machine. My intention is not to stress test either but to perform functional test using Jmeter. There will be one remote machine (server) with JMeter that will test a webserver. Each tester will just invoke jmeter.bat on remote machine, that run JMeter on remote machine and save the result over there. I can use PsExec, batchfile and maybe python to execute process on remote machine.
Looks like there is a bunch of solutions that allow you to run .bat with params remotely on win-machine, from both nix-and win-clients: 1, 2, 3, 4. That's not scope of jmeter's functionality.
Ok... in that case if you'r able to run the jmeter.bat of your JMeter host machine from Tester's machine... probably the command here will work for you. <your command to execute the .bat file from JMeter Host M/C> -n -t \\<JMeterHostIP>\script.jmx -l \\<JMeterHostIP>\ListenerName.jtl
code<your command to execute the .bat file from JMeter Host M/C>\apache-jmeter-2.6\bin\jmeter.bat -n -t \\<JMeterHostIP>\script.jmx -l \\<JMeterHostIP>\ListenerName.jtl

Your Answer

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

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.