Java Mission Control mapping rendered "Flightrecorder not supported for javas messages without hotspot"

When I tried to profile a local Java application by running Java Mission Control ( jmc

), I was unable to connect to the application. It displayed "Flightrecorder is not supported for JVMs without hotspot" in the description of all JVM processes displayed in the left pane. My environment: Windows 7, Java 8u25

Since I have not been able to find a solution to this problem anywhere on the web, I want to share a solution that I luckily found for other people (and my future) who may face the same problem in the future.

+3


source to share


1 answer


Here I am posting a solution and observations that lead to a solution.

When I (coincidentally) tried to start jvisualvm

, the error "Local Java applications cannot be controlled" was displayed. At http://visualvm.java.net/troubleshooting.html under "Local applications cannot be detected" ("Startup error dialog") "I found that Windows can have problems with one exact folder name if the account name is in capital letters.



The solution was to change the folder name %TMP%\hsperfdata_username

so that the capital letter matches my username (instead of "e" instead of "E" in the folder name). After that, the changes started working again jmc

as and jvisualvm

.

Note. Before changing the folder name, you need to kill all running Java applications.

+4


source







All Articles