Jvisualvm freezes while profiling a local process

when I use jVisualVM, I see two local processes: the process VisualVMitself and the one that interests me, call him ProcessX. When I doubleClick the process VisualVM, everything works fine. When I doubleclick ProcessX, the application gets stuck and no longer matches. I use eclipseto run my java application and I have a standalone version jVisualVMin the field Windows x64. I run jVisualVM from "C: \ Program Files \ Java \ jdk1.7.0_51 \ bin". Setting the proxy server to "No proxy" in the menu VisualVMhelped me neither ,

+4
source share
2 answers

Often, a DNS resolution issue may occur if the process you are trying to connect to VisualVM runs on localhost. In this case, try adding the following system property to the process you are trying to connect to:

 -Djava.rmi.server.hostname=localhost

See also: fooobar.com/questions/58961 / ... and Has anyone ever received a remote JMX JConsole for work?

+5
source

I had exactly the same problem and I hope that my solution will help someone else.

: - x64, Intellij Idea "idea.exe" ( exe x32), Java- IDE. jVisualVM , x64 jdk. idea64.exe - . Java-, IDE.

, x64 - eclipse.

0

Source: https://habr.com/ru/post/1530883/


All Articles