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

REGRESSION: no longer possible to bootstrap java agent into embedded VM

XMLWordPrintable

    • b65
    • 6
    • b89
    • generic
    • generic

      Since b65 is no longer possible to bootstrap a java agent into a VM that isn't created by the java launcher.

      To duplicate this issue use a custom launcher or simply load an applet in the browser. Then try to connect using jconsole:

      $ jconsole <pid>
      Exception in thread "VMPanel.connect" java.lang.InternalError: instrument library is missing in target VM
              at sun.tools.attach.HotSpotVirtualMachine.loadAgent(HotSpotVirtualMachine.java:87)
              at sun.tools.jconsole.LocalVirtualMachine.loadManagementAgent(LocalVirtualMachine.java:245)
              at sun.tools.jconsole.LocalVirtualMachine.startManagementAgent(LocalVirtualMachine.java:83)
              at sun.tools.jconsole.ProxyClient.tryConnect(ProxyClient.java:327)
              at sun.tools.jconsole.ProxyClient.connect(ProxyClient.java:297)
              at sun.tools.jconsole.VMPanel$2.run(VMPanel.java:277)

      When jconsole attaches to the target VM it will request the target VM to load management-agent.jar. Loading a java agent requires loading libinstrument.so and this library cannot be loaded due to the dependence on jli/libjli.so. This issue did not exist prior to b65.

            jkowalsksunw Joseph Kowalski (Inactive)
            alanb Alan Bateman
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: