Unable to attach to JVM


Unable to attach JVM and getting this error in the logs

2018-04-26T17:45:26.936+02:00 | ERROR | m.instana.plugin.java.4212attach | aagentLoaderImpl | com.instana.agent - 1.1.430 | Cannot attach to JVM VirtualMachineImpl [attachType=HOTSPOT, commandLine=com.sun.javaws.Main C:\Users\Kasse\AppData\LocalLow\Sun\Java\Deployment\cache\6.0\22\48302516-3b0d9cdf, vmArgs=-Xbootclasspath/a:C:\Program Files\Java\jre1.8.0_171\lib\deploy.jar;C:\Program Files\Java\jre1.8.0_171\lib\javaws.jar;C:\Program Files\Java\jre1.8.0_171\lib\plugin.jar -Xverify:remote -Djava.security.manager -Xmx1100m -XX:+UseG1GC -Xms1100m -Djnlp.sportbet.client.servicehost=x.y.com -Djnlp.java.security.auth.login.config=http://download.y.com/ebet-clients/auth.conf -Djnlp.java.net.preferIPv4Stack=true -Djnlp.sportbet.driver.print.epson.install=true -Djava.util.Arrays.useLegacyMergeSort=true -Djnlp.tk=awt -


It looks like the JVM may not satisfy the prerequisites of our attachment as below:

/The agent will “attach” to the JVM, which requires the tools jar to be existing in the runtime of the monitored JVM on HotSpot derivatives (Oracle, Azul, SAP and OpenJDK)./

Please verify whether the tools.jar exists within the runtime of that JVM. Alternatively, we suggest usage of a JDK which in our opinion is a better option for the execution of java applications on a server. The attached second screenshot shows where the tools JAR is located and that it is missing in the Windows JRE download from the Oracle website.


Also in some cases we need to check if the agent has administrative rights if we see below logs:

2018-04-26T13:25:26.316+02:00 | INFO | features-1-thread-1 | AgentBootstrap | com.instana.agent-bootstrap - 1.1.11 | Agent installed to C:\instana-agent and started by K-J79MB5J$

The agent needs administrative rights. Please doublecheck with customer. Thanks.

Have more questions? Submit a request