0
votes

I want to configure JMeter for distributed testing in aws Ec2 instances. I followed the Jmeter manual still facing issues. Both Slave and Master are aws Ec2 instances. Both are from same region under same subnet. I have turned off firewall in both master and slave.I even diabled rmi ssl with this command server.rmi.ssl.disable=true, configured the remote host with slave ip on the master. before starting the execution i have launched the jmeter-server.bat on the aws slave. I tried to run a simple http request through slave and got the below given error.

Connection refused to host:<>; nested exception is: java.net.ConnectException: Connection timed out: connect

I have disabled firewall in both slave and master machines. JMeter & Java versions are the same. Is there a way to resolve this connection issue from master to slave through JMeter by running the test

1

1 Answers

0
votes

If your masters/slaves are in the same VPC - you can use private IP addresses, otherwise you will have to go make sure to use public IP addresses (or DNS hostnames)

Also make sure that the following ports are open in AWS security groups:

  • 1099 (or whatever you set as the server.port)
  • the port you define as server.rmi.localport
  • the port(s) you define as client.rmi.localport

More information: