JMeter 连接被拒绝

JMeter connection refused

我正在尝试 运行 远程服务器上的 JMeter。 我在新的 VM 实例上 运行ning JMeter 服务器,在我的桌面上使用 GUI 客户端。

我编辑了 jmeter.properties 文件并插入了我的新 VM 的外部 IP 和端口。

# 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

我还在我的防火墙上启用了该特定端口和 IP。

为了测试我使用了 curl 并立即得到了响应:

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

当我启动 JMeter GUI 时,出现异常:

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

我的问题是 - 为什么 JMeter GUI 试图访问我的内部 IP 而不是属性中指定的外部 IP? JMeter 如何知道我的内部 IP?我错过了什么?我需要在其他地方配置它吗?

在jmeter-server/jmeter-server.bat文件中取消注释:

RMI_HOST_DEF=-Djava.rmi.server.hostname=