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

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

    Details

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

      Description

      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

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                dtitov Daniil Titov
              • Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                Dates

                • Created:
                  Updated: