Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8196751

It should be possible to configure jhsdb debug server to use fixed RMI ports



    • Type: Enhancement
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: 11
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:


      When running jhsdb debug server on the remote host behind firewall or/and inside a Docker container it should be possible to specify what exact ports needs to be used.

      Currently options com.sun.management.jmxremote.rmi.port and com.sun.management.jmxremote.port are ignored and random ports are used for RMI ( RMI registry uses fixed port 1099).

      Please note that property java.rmi.server.hostname works fine so the following command line allows to start debug server on the compute instance in Oracle Bare Metal Cloud and connect to this debug server from another machine, assuming that ALL ports are opened in both VCN security lists and the host firewall settings. However, this approach doesn't work when the debug server runs in docker container since the port mapping could not be configured due to random RMI port used.

      [opc@serviceability-1 ~]$ sudo /jdk/bin/jhsdb -J-Djava.rmi.server.hostname=serviceability-1 debugd 11701


          Issue Links



              • Assignee:
                jgeorge Jini George
                dtitov Daniil Titov
              • Votes:
                0 Vote for this issue
                2 Start watching this issue


                • Created: