Bug 62463

Summary: Distributed client/server setup: use different RMI ports for the remote objects when using SSL
Product: JMeter Reporter: Felix Schumacher <felix.schumacher>
Component: MainAssignee: JMeter issues mailing list <issues>
Status: RESOLVED FIXED    
Severity: normal CC: p.mouawad
Priority: P2 Keywords: FixedInTrunk
Version: 4.0   
Target Milestone: JMETER_5.0   
Hardware: All   
OS: All   
Attachments: Open remote objects on different ports

Description Felix Schumacher 2018-06-16 13:57:55 UTC
As reported on the mailing list at https://lists.apache.org/thread.html/2de9386fb0f0c073eb9602837338c60981f1d22ded85661424ffa83e@%3Cuser.jmeter.apache.org%3E
it is not possible to fixate the port for rmi usage when enabling SSL. This hinders easy configuration of firewalls.

The port specified by client.rmi.localport gets used by three rmi remote objects:
* ClientJMeterEngine
* RemoteThreadsListener
* RemoteSampleListener

A first fix would be to use the client.rmi.localport with an offset (0, 1, 2) for those objects. But at least in GUI mode the listeners could be initialized multiple times and will fail on the second initialization.
Comment 1 Felix Schumacher 2018-07-07 10:54:21 UTC
Created attachment 36017 [details]
Open remote objects on different ports

This is not a complete fix. It will use different ports for the remote objects, but at least in the GUI, the listeners will get initialized more than once and those registrations fail.
Comment 2 Felix Schumacher 2018-07-07 13:28:59 UTC
Date: Sat Jul  7 13:27:20 2018
New Revision: 1835311

URL: http://svn.apache.org/viewvc?rev=1835311&view=rev
Log:
Fix usage of ports, when client.rmi.localport is set for distributed runs.

This is not a complete fix, as there can be more than one Listener and
they can be initialized more than once. That will lead to exceptions.

Bugzilla Id: 62463

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/samplers/RemoteSampleListenerImpl.java
    jmeter/trunk/src/core/org/apache/jmeter/threads/RemoteThreadsListenerImpl.java
    jmeter/trunk/xdocs/changes.xml
    jmeter/trunk/xdocs/usermanual/remote-test.xml
Comment 3 Philippe Mouawad 2019-05-21 08:37:13 UTC
Author: pmouawad
Date: Tue May 21 08:36:51 2019
New Revision: 1859617

URL: http://svn.apache.org/viewvc?rev=1859617&view=rev
Log:
Bug 62463 - Distributed client/server setup: use different RMI ports for the remote objects when using SSL

This closes #389
Bugzilla Id: 62463

Modified:
    jmeter/trunk/README.md