[OPENDJ-1829] JMX connector listens on a random port number Created: 18/Feb/15 Updated: 08/Nov/19 Resolved: 07/Jan/16
|Fix Version/s:||3.0.0, 2.8.0|
|Reporter:||Quentin CASTEL [X] (Inactive)||Assignee:||Matthew Swift|
|Support Ticket IDs:|
The JMX connection handler listens on 2 ports, only one of which is configurable - 1689, the default listen-port. A random port is also listened on, and remote tools such as jconsole need to connect to both ports.
The use of a random port makes it difficult to create firewall rules which allow JMX traffic through.
The problem seems to come from the RMI Connector, when it instantiate the RMIJRMPServer:
The value 0 is the port number.
The constructor prototype:
As 0 is a special value, the port will be chosen randomly.
You can see this opened port by running OpenAM with an embedded OpenDJ and do a
In my case, the first time, I had:
33121 is the port opened in the RMI connector
and after restarting openAM:
The second time, the port is 33039
|Comment by Ondrej Fuchsik [ 06/Jan/16 ]|
|Comment by Ondrej Fuchsik [ 07/Jan/16 ]|
Let the issue resolved as fixed, because it affects 2.6.0
|Comment by Matthew Swift [ 07/Nov/19 ]|
Moved to closed state because the fixVersion has already been released.