[英]jMeter Slave - Server failed to start: java.rmi.RemoteException: Cannot start. ip-10-142-111-66 is a loopback address
I created a barebones ec2 ubuntu server with only jmeter installed using hte following.. 我创建了一个准系统ec2 ubuntu服务器,只使用hte安装jmeter跟随..
sudo apt-get install jmeter
This server is designed to be the slaves. 该服务器设计为从属服务器。 when I run sudo jmeter-server I get the below error.
当我运行sudo jmeter-server我得到以下错误。 This error leaves me with no where to go since its a bare bones ubuntu server and as far as I know the jmeter apt-get install installs all of the dependancies.
这个错误让我无处可去,因为它是一个简单的ubuntu服务器,据我所知,jmeter apt-get install会安装所有的依赖项。 I have seen this post but still vague on won to fix the issue.
我已经看过这篇文章,但仍然模糊不清以解决问题。
JMeter - Loopback address error when launching jmeter-server on Linux JMeter - 在Linux上启动jmeter-server时出现环回地址错误
sudo jmeter-server
[warning] /usr/bin/jmeter: Unable to locate commons-net in /usr/share/java
[warning] /usr/bin/jmeter: Unable to locate geronimo-activation-1.1-spec in /usr/share/java
[warning] /usr/bin/jmeter: Unable to locate geronimo-javamail-1.4-provider in /usr/share/java
[warning] /usr/bin/jmeter: Unable to locate jboss-j2ee in /usr/share/java
[warning] /usr/bin/jmeter: Unable to locate jdom1 in /usr/share/java
[warning] /usr/bin/jmeter: No JAVA_CMD set for run_java, falling back to JAVA_CMD = java
java.lang.Throwable: Could not access /usr/share/jmeter/lib/junit
at org.apache.jmeter.NewDriver.<clinit>(NewDriver.java:96)
Created remote object: UnicastServerRef [liveRef: [endpoint:[127.0.1.1:56808](local),objID:[22c4bd9a:13773cb6090:-7fff, 2168779335812031976]]]
Server failed to start: java.rmi.RemoteException: Cannot start. ip-10-142-111-66 is a loopback address.
I was having a similar issue and I abandon the ubuntu packaged version of jmeter for a newer version. 我有一个类似的问题,我放弃了ubuntu打包版本的jmeter用于更新版本。
You can find them here: http://archive.apache.org/dist/jmeter/binaries/ 你可以在这里找到它们: http : //archive.apache.org/dist/jmeter/binaries/
I was able to start a server like so: 我能够像这样启动服务器:
wget http://archive.apache.org/dist/jmeter/binaries/apache-jmeter-2.8.tgz
tar -xzf apache-jmeter-2.8.tgz
export RMI_HOST_DEF=-Djava.rmi.server.hostname=XXX.XXX.XXX.XXX
apache-jmeter-2.8/bin/jmeter-server
NOTE: This also gets around the issue discussed here 注意:这也解决了这里讨论的问题
I remember hitting an issue like this. 我记得遇到过像这样的问题。
What is in your /etc/hosts file on the slave jmeter box? 从机jmeter盒上的/ etc / hosts文件中有什么?
Maybe try changing this 也许尝试改变这一点
127.0.1.1 <your server name> localhost
To this 对此
127.0.1.1 localhost
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.