jmx-dev RFR(S): 8234484: Add ability to configure third port for remote JMX

Daniel Fuchs daniel.fuchs at oracle.com
Wed Jan 8 10:20:57 UTC 2020


Hi Felix,

Shouldn't this be configurable via the management.properties file,
like all other JMX properties?

Also on the one hand - it would be good to have a test.
On the other hand - writing a stable test will be problematic
as there is no way to ensure that any particular port number
will be available for the agent to bind to.

best regards,

-- daniel

On 08/01/2020 01:09, Yangfei (Felix) wrote:
> Hi,
> 
> Please review this patch adding a way to configure the third port for 
> remote JMX.
> 
> Currently, it is possible to configure two of the three ports for JMX 
> with com.sun.management.jmxremote.port and 
> com.sun.management.jmxremote.rmi.port.
> 
> However, there is no way to configure the third port. This can cause 
> problems if the randomly assigned port conflicts with another service 
> that has not yet acquired its port.
> 
>     Bug: https://bugs.openjdk.java.net/browse/JDK-8234484
> 
>    Webrev: http://cr.openjdk.java.net/~fyang/8234484/webrev.00/
> 
>    Passed tiered-1 test.
> 
> Thanks,
> 
> Felix
> 



More information about the jmx-dev mailing list