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

jconsole does not show local running VMs to attach

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P3 P3
    • 9
    • 9
    • core-svc
    • b156

        This is caused by JDK-8173607 due to the rename of sun.management.ConnectorAddressLink class.

        --- old/src/jdk.jconsole/share/classes/sun/tools/jconsole/JConsole.java 2017-02-05 16:37:26.768771419 +0100
        +++ new/src/jdk.jconsole/share/classes/sun/tools/jconsole/JConsole.java 2017-02-05 16:37:26.597774358 +0100
        @@ -954,7 +954,7 @@
                 boolean supported;
                 try {
                     Class.forName("com.sun.tools.attach.VirtualMachine");
        - Class.forName("sun.management.ConnectorAddressLink");
        + Class.forName("jdk.internal.agent.ConnectorAddressLink");
                     supported = true;
                 } catch (NoClassDefFoundError x) {
                     supported = false;

              mchung Mandy Chung
              mchung Mandy Chung
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: