Public bug reported:

Description:    Ubuntu 10.04 LTS
Release:        10.04
jmeter:
  Installed: 2.3.4-2ubuntu1


Jmetet-server uses InetAddress.getLocalHost() to determine a valid IP address 
for the host it is running on. It then performs a isLoopbackAddress() on the 
returned object and fails hard if that is the case.

The problem occurs when a server is configured to use DHCP since, in
that case, InetAddress.getLocalHost() returns 127.0.1.1. For RMI the
property "java.rmi.server.hostname" can be used but that only resolves
half of the problem.

I am attaching a patch which resolved this issue by replacing the trivial 
InetAddress.getLocalHost() with a method getLocalAddress() which does a more 
thorough attempt to find a non-loopback address to use.
1) If java.rmi.server.hostname is defined it us used
2) InetAddress.getLocalHost() is attempted
3) Enumerate all network interfaces until a non-loopback ipv4 is found

This patch should be combined with a java.rmi.server.hostname in the
jmeter-server script.

** Affects: jakarta-jmeter (Ubuntu)
     Importance: Undecided
         Status: New

-- 
jmeter-server fails to start due to 127.0.1.1-binding
https://bugs.launchpad.net/bugs/589042
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to