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

jmxremote.host property listen on all interfaces when jmxremote.ssl is true

    XMLWordPrintable

    Details

      Description

      ADDITIONAL SYSTEM INFORMATION :
      $ uname -r
      3.10.0-1160.15.2.el7.x86_64

      $ java -version
      openjdk version "11.0.10" 2021-01-19 LTS
      OpenJDK Runtime Environment 18.9 (build 11.0.10+9-LTS)
      OpenJDK 64-Bit Server VM 18.9 (build 11.0.10+9-LTS, mixed mode, sharing)

      A DESCRIPTION OF THE PROBLEM :
      Property com.sun.management.jmxremote.host seems not to work when com.sun.management.jmxremote.ssl is true on CentOS.
      It does work when com.sun.management.jmxremote.ssl is false
      It does work on Windows 10.

      REGRESSION : Last worked in version 8u281

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Run a java application the opens a JMX server with the following JVM JMX options:

      -Dcom.sun.management.jmxremote \
      -Dcom.sun.management.jmxremote.host=<IP> \
      -Dcom.sun.management.jmxremote.port=<JMX_PORT>\
      -Dcom.sun.management.jmxremote.ssl=true \
      -Dcom.sun.management.jmxremote.access.file=jmxremote.access \
      -Dcom.sun.management.jmxremote.password.file=jmxremote.password

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      The port 19098 is bound only to the configured IP:
      $ netstat -ano | grep <JMX_PORT>| grep LIST
      tcp6 0 0 <IP>:<JMX_PORT> :::* LISTEN off (0.00/0/0)
      ACTUAL -
      The port 19098 is not bound to the configured IP and it is listening on all local interfaces:
      $ netstat -ano | grep <JMX_PORT> | grep LIST
      tcp6 0 0 :::<JMX_PORT> :::* LISTEN off (0.00/0/0)
      tcp6 0 0 <IP>:<JMX_PORT> :::* LISTEN off (0.00/0/0)

      FREQUENCY : always


        Attachments

          Activity

            People

            Assignee:
            sswsharm swati sharma
            Reporter:
            webbuggrp Webbug Group
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: