Distributed load is referred with putting load on server by using another machine. In this you will send the request from your own computer which is called "Master" computer,to other computers which are called "slave" computer to web-server With this you will be able to put max load on web-server with the different CPU usage.
The prerequisite for this:
- You should turned off the firewalls of your computer.
- All the clients should be the same Sub-net.
- Make sure jmeter can access the server.
- Make sure you use the same version of Jmeter on all the systems.
How to configure-In this in the master computer in which you are running Jmeter,first go to the C:/ drive where the jmeter folder is-Then explore the jmeter folder,go to jmeter properties/configure file,and edit it.
You will see the line after scrolling down remote Host-127.0.0.1
Just add the ip of slave computer threw which you want to put the load on web-server.
Like I the ip’s are-192.168.34.78,192.168.34.89 etc..
But make sure that the IP should be of same domain.After adding the ip this line will look like-:After editing the line press ctrl+s.This is what should be done in Master computer.
Now go to slave computers and on that –
Go to jmeter/bin directory and execute jmeter-server.bat (jmeter-
server). On windows, you should see a dos window appear with “jre\[version]
\bin\rmiregistry.exe”. If this doesn't happen, it means either the environment settings are
not right, or there are multiple JRE installed on the system.
1. Open jmeter-server.bat in a notepad or edit-plus.
2. Follow till line-44 and find “:setCP”
3. Edit “START rmiregistry” to the full path. Example: “START
C:\jre\bin\rmiregistry.exe”When you are putting the distributed load, you should execute the jmeter-server.bat file first.
Now when you will start Jmeter from master computer,on the run tab you will see the option remote start-
So as you can in the above figure in the remote start option you will be able to see all the ip’s. From here you can select the ip from which computer you want to put the load on web-server. Or u can click on Remote Start All to put load threw all the slave systems on web-server.
After configuring this you can record the test or open the save tests.
This will may helpful to you.for more information refer this link- http://jakarta.apache.org/jmeter/usermanual/remote-test.html




Great work!!!!
ReplyDeleteIf we have 2 scripts and 2 load agent. 1 script contain 10 users and other contain 25 user. How should i distribute the load across 2 agents. Like 1 script hit 1st agent and other hit 2nd agent.
ReplyDeleteFor that u have to make 2 parameterization script. U can do it only by parametrization. Like u have a page in which user login id and pasword is required. And in another page, user name and id is required. For that make 2 parameteriz .csv file. And call them from ur script.
ReplyDeleteHI Vijay,
ReplyDeleteGreat Blog.
Tried to run jmeter server bat file but i am not getting jre\version
following message i am getting on dos window:
Could not find ApacheJmeter_core.jar ...
... Trying JMETER_HOME=..
Found ApacheJMeter_core.jar
Created remote object: UnicastServerRef [liveRef: [endpoint:[10.2.2.64:1157](local),objID:[-6c77b92a:13729affe0e:-7fff, -1037098833377347009]]]
Could you please provide some input to solve this issue
HI! thanks.For remote connection please follow the steps which i have written in the blog. As u said that u r getting this error, so this error can be comming because of the file mising or because of the jre version.And make sure the u r creating remote connection in the same subnet.It is not neccessary the the window should appear with version name, but it should work.Remove ur jmeter setup and again paste it. Check for system variables that all are configured or not. Also update remregistry path. If any issue then please do share.
ReplyDeleteHi Vijay, I re verified all the configurations. Now I am able run the Scripts thanks,
ReplyDeleteI m anot able to do it...... i mean the same error
ReplyDeleteCould not find ApacheJmeter_core.jar ...
... Trying JMETER_HOME=..
Found ApacheJMeter_core.jar
Created remote object: UnicastServerRef [liveRef: [endpoint:[10.2.2.64:1157](local),objID:[-6c77b92a:13729affe0e:-7fff, -1037098833377347009]]]
can you please help me...
i edited the file jmeter-server
and yea.... i have edited the environmental variable according to you...
i have done with JRE folder and not with JDK.. is that correct
Hi
ReplyDeletei have done all the settings as per ur doc. but still i m not able to do the complete set up.
I m getting the error :
Trying JMETER_HOME=..
Found ApacheJMeter_core.jar
Created remote object: UnicastServerRef [liveRef: [endpoint:[10.2.2.64:1157](local),objID:[-6c77b92a:13729affe0e:-7fff, -1037098833377347009]]]
also i want to tell you that i m in the same subnet with the slave machines, the version is also the same on all machines.
one thing i want to confirm that wheather the lastest version of Java is required or we can do it by earlier version also.
Hi! It is necessary that u have Java-1.5 or later version installed in your computer with configuration. Make sure that you are running, server.bat file in slave machines.
ReplyDeleteMake sure that you r using the same version of jmeter.
Try with this..
For configuring Jmeter and java follow previous post.
ReplyDelete