JMeter slave – server failed to start: Java rmi. RemoteException: cannot start Ip-10-142-111-66 is a loopback address
•
Java
I created a quasi system EC2 Ubuntu server and only used hte to install JMeter to follow
sudo apt-get install jmeter
The server is designed as a slave server When I run sudo JMeter server, I get the following error This error leaves me nowhere to go because it is a simple Ubuntu server. As far as I know, JMeter apt get install will install all dependencies I have read this article, but it is still vague to solve the problem
JMeter – Loopback address error when launching jmeter-server on Linux
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.
Solution
I have a similar problem. I gave up the Ubuntu packaged version of JMeter for the updated version
You can find them here: http://archive.apache.org/dist/jmeter/binaries/
I can start the server like this:
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 solves the problem discussed here
The content of this article comes from the network collection of netizens. It is used as a learning reference. The copyright belongs to the original author.
THE END
二维码