我创建了一个准系统ec2 ubuntu服务器,只使用hte安装jmeter跟随..
sudo apt-get install jmeter
该服务器设计为从属服务器.当我运行sudo jmeter-server我得到以下错误.这个错误让我无处可去,因为它是一个简单的ubuntu服务器,据我所知,jmeter apt-get install会安装所有的依赖项.我已经看过这篇文章,但仍然模糊不清以解决这个问题.
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.
解决方法
我有一个类似的问题,我放弃了ubuntu打包版本的jmeter用于更新版本.
你可以在这里找到它们:http://archive.apache.org/dist/jmeter/binaries/
我能够像这样启动服务器:
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