Jmeter分布式压测步骤

Jmeter分布式压测步骤:
1、 在slave机打开 Jmeter_path/bin/jmeter.properties,找到”remote_hosts=127.0.0.1”,
把这一行修改为”remote_hosts=本机IP:1099, 1099是端口号,可以随意自定义。
2、修改server.rmi.localport=1099,1099为启动jmeter-server时展示的端口,如:
Jmeter分布式压测步骤_第1张图片
2、 启动jmeter-server

3、 在slave机打开server机Jmeter_path/bin/jmeter.properties,找到”remote_hosts=127.0.0.1”,
把这一行修改为 remote_hosts=本机IP:1099,远程slave机IP:端口, 1099是端口号,可以随意自定义。
4、 启动GUI

遇到的问题:

1、
问题:启动jmeter-server 失败,报异常
Server failed to start: java.rmi.RemoteException: Cannot start. ubuntu is a loopback address.
An error occurred: Cannot start. ubuntu is a loopback address.

解决:
./jmeter-server -Djava.rmi.server.hostname=ip
或者修改jmeter-server中的配置:
RMI_HOST_DEF=-Djava.rmi.server.hostname=ip

2、
问题:启动jmeter-server 失败,报异常
2019-01-16 19:31:14,069 ERROR o.a.j.JMeter: Giving up, as server failed with:
java.rmi.server.ExportException: Listen failed on port: 0; nested exception is:
java.io.FileNotFoundException: rmi_keystore.jks (No such file or directory)
at sun.rmi.transport.tcp.TCPTransport.listen(TCPTransport.java:348) ~[?:1.8.0_171]
at sun.rmi.transport.tcp.TCPTransport.exportObject(TCPTransport.java:254) ~[?:1.8.0_171]
at sun.rmi.transport.tcp.TCPEndpoint.exportObject(TCPEndpoint.java:411) ~[?:1.8.0_171]
at sun.rmi.transport.LiveRef.exportObject(LiveRef.java:147) ~[?:1.8.0_171]
at sun.rmi.server.UnicastServerRef.exportObject(UnicastServerRef.java:236) ~[?:1.8.0_171]
at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:383) ~[?:1.8.0_171]
at java.rmi.server.UnicastRemoteObject.exportObject(UnicastRemoteObject.java:346) ~[?:1.8.0_171]
at java.rmi.server.UnicastRemoteObject.(UnicastRemoteObject.java:225) ~[?:1.8.0_171]
at org.apache.jmeter.engine.RemoteJMeterEngineImpl.(RemoteJMeterEngineImpl.java:66) ~[ApacheJMeter_core.jar:5.0 r1840935]

解决:
打开jmeter.properties,把 server.rmi.ssl.disable 改为 true,表示禁用

更详细的说明:
http://www.cnblogs.com/loveapple/p/10064134.html

你可能感兴趣的:(Jmeter)