Rakshita BJ wrote:
Hello Team,

I am trying to run distributed testing in Jmeter.

  * I have the same version of Jmeter as well as Java in master and
    slave machines.
  * I have added the remote host IP address to my jmeter.properties
    file.image.png
  * Before running the tests I make sure to start the
    Jmeter-server.bat in my slave machine and once I start it this is
    what I see
    image.png
  * Port 1099 is open and the firewall rule on it has been removed.
  * Remote hosts(VM) are run using aws and the port 1099 is open in
    security groups.

    I performed all the above steps and am getting the below error,
    *the IT team is saying that since Java RMI assigns random ports
    once it makes a connection to remote hosts using 1099,* they
    cannot apply firewall rules on all ports as they don't know which
    port is used.
  * Screenshot (105)_LI.jpg
  * I have tried assigning a specific port in client.server.local port
    in jmeter.properties file but that doesn't seem to work
    either.image.png

Could the team please help me in any steps I am missing out on? What could be the reason I am seeing the above error??

Eagerly waiting for the response.

Thanks and regards,
Rakshita
By default:

1. Master connects to slave(s) on port 1099 in order to transfer the
   .jmx test plan and send start test event
2. Slaves connect to master on random free ports to report back the
   test metrics/results and end test events

As per JMeter Documentation <https://jmeter.apache.org/usermanual/properties_reference.html#remote>:

*server_port*
RMI port to be used by the server (must start rmiregistry with same port).

*client.rmi.localport*
Parameter that controls the RMI ports used by RemoteSampleListenerImpl and RemoteThreadsListenerImpl (The Controller) Default value is 0, which means *ports are randomly assigned.* If this is non-zero, it will be used as the base for local port numbers for the client engine. At the moment JMeter will open up to three ports beginning with the port defined in this property.


So if you want to change the port from 1099 you need to set the appropriate server_port value in /user.properties/ file on slave(s). Then you can use *remote_hosts* property to inform master about slave server ports like *remote_hosts=slave1:1099,slave2:2099,slave3=3099
*

If you want to use static port set client.rmi.localport on master side like *client.rmi.localport=50000*.


Make sure that:

1. All server_port values are open on the slave(s) in your operating
   system firewall
2. On master *client.rmi.localport* and 3 more ports starting from it
   are open in the firewall.

More information: Apache JMeter Properties Customization Guide <https://www.blazemeter.com/blog/jmeter-properties-customization>


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@jmeter.apache.org
For additional commands, e-mail: user-h...@jmeter.apache.org

Reply via email to