Why cannot I find any JVMs on JVM Explorer?
Why do I get the message "Monitoring is not supported for the selected JVM"?
How can I enable the BCI mode of CPU profiler on remote host?
How can I monitor my application that runs only for very short time?
At least one JVM (Eclipse itself) should be shown on JVM Explorer. If no JVM is shown, there are two possible causes.
cause 1) Eclipse is not started with supported JDK. For example, JRE might be used instead of JDK.
To solve the issue,
Workbench User Guide to learn how to specify that option.
Note: If failed to specify -vm option or if you don't want to change the eclipse launch settings, you may try specifying the JDK on preference page Window > Preferences > Java > Monitor > Tools > JDK Root Directory.
cause 2) The folder %TMP%\hsperfdata_* could be not permitted for JVM to create a new file on Windows.
To solve the issue,
Note: After changing settings, not only your application but also Eclipse have to be restarted.
There are several cases that this message is shown.
-Dcom.sun.management.jmxremote
To enable BCI mode of CPU profiler on remote host,
<plug-ins instalation directory>/org.jvmmonitor.core/lib/jvmmonitor-agent.jar
-javaagent:<path>/jvmmonitor-agent.jar
Note: When you upgrade the version of JVM Monitor, jvmmonitor-agent.jar has to be copied again.
Note: If you use JDK/JRE 6, white space cannot be contained in the path due to the bug 6459832
To monitor the application that runs for so short time that you cannot connect JVM Monitor,
Note: If your application is started from outside Eclipse, you may specify the following option for your application to suspend until debugger is attached.
-agentlib:jdwp=transport=dt_socket,address=<port number>,server=y,suspend=y