Distributed testing
To generate load from different locations or to generate more load than you could from a single computer.
Actually there is limitation of a single normal configuration machine to generate large user load test. So we use distributed load testing to use multiple machines for generating the load wherein you rightly said we used master slave configuration
Pre-Conditions :
-- All the master and slave PC's should be connected to the same net.
-- Need to have same version of JMeter in master(system running JMeter GUI, control each slave) and slaves(system running JMeter-server, receive command from the master and send a request to server under test)
Step:1 Slave PC configuration -
Select bin directory from JMeter folder, select jmeter-server.bat(Windows Batch File) file to open
Step:2 Master PC configuration -
Select jmeter.properties (Properties file), Open with any editor(Say- notepad) and add all the slave machine ip's under # Remote Hosts - comma delimited
Now open the GUI of JMeter from bin > jmeter.bat file.
from the GUI, record the script of the JMeter which you needed. as of now am recording the google.com page and search with term 'Software Testing'
For recording the script, Please refer my previous tutorial http://bharati-
anuchuri.blogspot.in/2015/03/apache-jmeter-introduction-and-tutorial.html
Thus your actual load(No.of users) will be divided in between master and slave pc's.
from the GUI, record the script of the JMeter which you needed. as of now am recording the google.com page and search with term 'Software Testing'
For recording the script, Please refer my previous tutorial http://bharati-
anuchuri.blogspot.in/2015/03/apache-jmeter-introduction-and-tutorial.html
Once the script got recorded, Run the result by remote starting the slave ip's.
Thus your actual load(No.of users) will be divided in between master and slave pc's.
I have configured two slaves and one master machine.
ReplyDeleteAfter executing the performance test in Jmeter using the master slave architecture on master machine, I am getting the result log in slaves machines but I need a consolidated log summary. Please suggest me how can I get it?
Also, I need to know that how the load is distributed over the slave machines.
Thank you sharing this information thank you.Come back again for more interesting stuffs like one you got earlier!
ReplyDeletePower transformers in India | Transformer manufacturer in India
Thanks!!
Delete