Skip to content

JMeter server doesn't alert the user when the host is defined as a loopback address #1830

@asfimport

Description

@asfimport

Rubén Laguna (Bug 41028):
Due to Sun Bug 4665037
(http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4665037) rmi in linux may
not work if the name resolution is not properly configured.

The problem is that under linux the jmeter server in rmi will be bound to ip
127.0.0.1 instead of the real (externally reachable) ip address of the machine.
So although the jmeter master will be able to locate the "JMeterEngine"
instances via the RMI registry. It will not be able to connect to the actual
instances.

Actually JMeter will not complain when this happens it doesn't tell you anything
when launching jmeter-server ( not even in logs) and it will silently fail when
trying to start the remote instances (no trace in the logs).

It's very easy to include a check in RemoteJMeterEngineImpl.java to check
InetAddress.getLocalHost().isLoopbackAddress() and raise an exception or at
least log it.

Also it would be very convenient to add log statements in the catch
java.rmi.xxxxException blocks in the ClientJMeterEngine.java.

} catch (java.rmi.ConnectException e) {
log.error("rmi exception", e);

because otherwise this kind of failures go unnoticed.

Severity: trivial
OS: Linux

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions