Bug 62463 - Distributed client/server setup: use different RMI ports for the remote objects when using SSL
Summary: Distributed client/server setup: use different RMI ports for the remote objec...
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 4.0
Hardware: All All
: P2 normal (vote)
Target Milestone: JMETER_5.0
Assignee: JMeter issues mailing list
Keywords: FixedInTrunk
Depends on:
Reported: 2018-06-16 13:57 UTC by Felix Schumacher
Modified: 2019-05-21 08:37 UTC (History)
1 user (show)

Open remote objects on different ports (4.13 KB, patch)
2018-07-07 10:54 UTC, Felix Schumacher
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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
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

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
Bug 62463 - Distributed client/server setup: use different RMI ports for the remote objects when using SSL

This closes #389
Bugzilla Id: 62463