Hi! I am trying to use Startup Profiler plugin to profile a maven plugin execution. The connection succeeds and VisualVM is doing something (the progress bar "Profiler is busy" pops up a couple of times) but it does not display any live data.
At the end of the execution VisualVM asks whether or not to take a snapshot but nothing happens when confirming.
I couldn't find any errors in the logfile.
What am I doing wrong?
VisualVM 1.3.9, --jdkhome ... and -J-Djava.io.tmpdir=... are set appropriately.
Java version: 1.8.0_102, vendor: Oracle Corporation
Java home: C:\Develop\CCS\jdk1.8.0_102\jre
Default locale: de_DE, platform encoding: Cp1252
OS name: "windows 10", version: "10.0", arch: "amd64", family: "dos"
@jisedlac After not being able to reproduce the issue on my private PC I did some more research and I finally have a solution:
I have to add -Djava.rmi.server.hostname=localhost to MAVEN_OPTS. Don't know why, probably due to some special network setup on my company laptop.
See also: https://stackoverflow.com/a/36192913
I have to start visualvm.exe from the very same console/path which I use for starting maven which is rather irritating because I've already set --jdkhome etc.