-
Bug
-
Resolution: Fixed
-
P2
-
6
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.
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.
- relates to
-
JDK-4976363 Java-related executables should use shared zlib library
-
- Resolved
-