在Ubuntu中启动./jmeter-server报错Server failed to start: java.rmi.RemoteException: Cannot start. ranxf is

Posted ranxf

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了在Ubuntu中启动./jmeter-server报错Server failed to start: java.rmi.RemoteException: Cannot start. ranxf is 相关的知识,希望对你有一定的参考价值。

 

 执行失败错误信息:

[email protected]:/home/ranxf/apache-jmeter-3.1/bin# ./jmeter-server
Writing log file to: /home/ranxf/apache-jmeter-3.1/bin/jmeter-server.log
Created remote object: UnicastServerRef [liveRef: [endpoint:[127.0.1.1:45261](local),objID:[-77439517:162bd0d02af:-7fff, -6895836418342878128]]]
Server failed to start: java.rmi.RemoteException: Cannot start. ranxf is a loopback address.
An error occurred: Cannot start. ranxf is a loopback address.

在jmeter-server加上参数后再次执行:[email protected]:/home/ranxf/apache-jmeter-3.1/bin# ./jmeter-server -Djava.rmi.server.hostname=10.1.1.222

执行成功:

[email protected]:/home/ranxf/apache-jmeter-3.1/bin# ./jmeter-server -Djava.rmi.server.hostname=10.1.1.222
Writing log file to: /home/ranxf/apache-jmeter-3.1/bin/jmeter-server.log
Created remote object: UnicastServerRef [liveRef: [endpoint:[10.1.1.222:37657](local),objID:[7dbfc9da:162bd1c6b19:-7fff, 3898125142463661501]]]

 

以上是关于在Ubuntu中启动./jmeter-server报错Server failed to start: java.rmi.RemoteException: Cannot start. ranxf is 的主要内容,如果未能解决你的问题,请参考以下文章

在启动jmeter-server.bat时出现异常

Jmeter目录文件讲解

Jmeter_远程启动步骤

Jmeter添加负载机

Jmeter-文件目录

Jmeter性能测试之分布式