下载jmeter最新版

https://jmeter.apache.org/download_jmeter.cgi

修改配置文件

vim apache-jmeter-5.1.1/bin/jmeter.properties

找到server.rmi.ssl.disable 这行,去掉前的#,并且把它的值由默认的False改为true

找到remote_hosts 这行,去掉前面的#,并且把它的值由默认的127.0.0.1改为10.0.11.200:1099(这是负载机的内网IP)

以下为jmeter5.1的例子

  • 257 # Remote Hosts - comma delimited
  • 258 remote_hosts=10.0.11.200:1099
  • 259 #remote_hosts=localhost:1099,localhost:2010
  • 260
  • 261 # RMI port to be used by the server (must start rmiregistry with same port)
  • 262 #server_port=1099
  • 263
  • 264 # To change the port to (say) 1234:
  • 265 # On the server(s)
  • 266 set server_port=1234
  • 267 start rmiregistry with port 1234

Q & A

自己机器上看不到响应信息怎么办?

修改配置如下:

756 mode=Standard

run-remote start卡住了怎么办?

确认自己的电脑wifi是ling-50