2
votes

I'm trying to run JMeter on a remote server. I'm running JMeter-server on a new VM instance, and the GUI client from my desktop.

I edited the jmeter.properties file and inserted the external IP and port of my new VM.

# Remote Hosts - comma delimited
remote_hosts=<my external IP>
#remote_hosts=localhost:1099,localhost:2010

# RMI port to be used by the server (must start rmiregistry with same port)
server_port=1099

I also enabled that specific port and IP on my firewall.

To test I used curl and got a response immediately:

curl <my external IP>:1099
curl: (52) Empty reply from server

When I started the JMeter GUI, I got an exception:

connection refused to host:<Internal IP of my new VM>

My question is - why is the JMeter GUI trying to reach my internal IP instead of the external IP specified in the properties? How does JMeter know my internal IP? What am I missing? Do I need to configure it somewhere else?

1

1 Answers

2
votes

In jmeter-server/jmeter-server.bat file uncomment:

RMI_HOST_DEF=-Djava.rmi.server.hostname=