Wednesday, 18 July 2018

JMeter Remote/Distributed testing

One instance of the JMeter GUI client can control any number of remote JMeter instances, and collect all the data from them. This offers the following features.

. Saving of test samples to a local machine.
. Management of multiple JMeter Engines from a single machine.

Steps to be followed:

1. Save a copy of JMeter (same version as console) to all the remote generators.
2. Modify the JMeter Properties file: 'jmeter.properties'
   Add the IP Address of load generators as remote hosts.
   Find the property named, "remote_hosts", and addthe value of your running JMeter server's IP address. Multiple such servers can be added, comma-delimited.
   E.g. remote_hosts=192.168.0.10,192.168.0.11,192.168.0.12,192.168.0.13,192.168.0.14
3. Start all the Remote Servers and open server batch file on all the Load Generators, it should opens two DOS windows appearing with 'rmiregistry.exe' and 'cmd.exe'.
4. Record the script to be executed or open the jmx file to be run for remote testing.
5. Change the thread group name to 'ThreadGroup_MachineName' using MachineName function to distinguish the threads of different machines
6. Use the 'Remote start' option to start a particular remote machine or use 'remote start all' option to start all the remote machines added as remote hosts in the properties file.
7. Use "Remote Stop' option to stop a particular remote machine and use 'Remote Stop All' option to stop all the remote machines.
8. Check the Remote server cmd windows for the respective remote data.
9. Before running the test also give a file name at the Aggregate report to save the output data in a file.




Thanks for reading
 J J J

No comments:

Post a Comment