Bug 62463 - Can't use fix RMI ports when using SSL for distributed client/server setup
Summary: Can't use fix RMI ports when using SSL for distributed client/server setup
Status: NEW
Alias: None
Product: JMeter
Classification: Unclassified
Component: Main (show other bugs)
Version: 4.0
Hardware: All All
: P2 normal (vote)
Target Milestone: ---
Assignee: JMeter issues mailing list
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2018-06-16 13:57 UTC by Felix Schumacher
Modified: 2018-09-12 19:29 UTC (History)
1 user (show)



Attachments
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
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