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.
1 Answer
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
4 Comments
Vijay Katoch
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.
Aliaksandr Belik
Yugal
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
Yugal
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
ssh jmeter.sh ...