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

JConsole 14 and greater fails to connect to older JVM

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b26
    • CPU:
      x86_64
    • OS:
      generic
    • Verification:
      Not verified

      Description

      ADDITIONAL SYSTEM INFORMATION :
      Server VM is OpenJDK Java 8 on RHEL 7.4 and the JConsole was Java 15 on Mac OS.

      A DESCRIPTION OF THE PROBLEM :
      When you connect JConsole that ships with Java 15 to a VM running an older version of Java like Java 8 for example it attempts to access an attribute called TotalMemorySize. This attribute does not exist in the older VMs and results in an Exception which is uncaught. That results in the connection being disconnected.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      Try connecting JConsole (Java 15) to a Java VM (Version 8). The connection will get closed within 10 seconds. It does not appear to be a function of the OS either end is running on.

      EXPECTED VERSUS ACTUAL BEHAVIOR :
      EXPECTED -
      Possibly some properties on the screen being absent or NA due to the inability to compute whatever that value is used to compute. Maybe an error dialog or something saying this version of JConsole is not compatible with the older version of Java.
      ACTUAL -
      Unchecked exception kills the connection.

      ---------- BEGIN SOURCE ----------
      No need. This happens on the raw VM
      ---------- END SOURCE ----------

      CUSTOMER SUBMITTED WORKAROUND :
      Downgrade the Java client or Update the Server VM.

      FREQUENCY : always


        Attachments

          Issue Links

            Activity

              People

              Assignee:
              amenkov Alex Menkov
              Reporter:
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: