Wednesday, 11 September 2013

Hostname only seems to be 127.0.0.1 for apache jmeter

Hostname only seems to be 127.0.0.1 for apache jmeter

I try jmeter-server on linux (fedora18). It says "Created remote object:
localhost:44750" . But the hostname should not be "localhost" . It should
be hostname as like "10.6.149.95".
So my jmeter master is failed, if I try the following command at another
server :
./jmeter -n -t myRequest.jmx -R 10.6.149.95
or
./jmeter -n -t myRequest.jmx -r
The failed logs :
Created the tree successfully using /root/myRequest.jmx
Configuring remote engine for 10.6.149.95
Using remote object: 127.0.0.1:44750 (null)
Starting remote engines
Starting the test @ Wed Sep 11 14:01:48 TRST 2013 (1378897308614)
An error occurred: method java.util.ResourceBundle.containsKey with
signature (Ljava.lang.String;)Z was not found.
My /etc/hosts file:
127.0.0.1 localhost localhost.localdomain localhost4
localhost4.localdomain4
::1 localhost localhost.localdomain localhost6
localhost6.localdomain6
10.6.149.95 host-10-6-149-95
I've tried it in two different version of Java (openjdk6-bin-1.6.0.2_22
and jdk1.7.0_25)
Why the hostname is 127.0.0.1? How to solve this problem?
Thanks.

No comments:

Post a Comment