VisualVM
@visualvm
Welcome to the VisualVM/Feedback chat. Let's share your feedback and discuss with the VisualVM developers and community!
wirowka
@wirowka
hello
anybody there?
Jiri Sedlacek
@jisedlac
Hi - feel free to leave your feedback or comments here. Thanks!
wirowka
@wirowka
hi Jiri, could you please take a look at oracle/visualvm#24 ?
Jiri Sedlacek
@jisedlac
Sure - added a comment to the bugreport.
wirowka
@wirowka
Thx, Jiri could you please check my last comment?
Falko Modler
@famod

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.

Environment:
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"

Jiri Sedlacek
@jisedlac
Hi Falko, the problem may be caused by wrong setup of the classes to be profiled. Please file a new Issue and provide as many details as possible, including the provided settings (http://visualvm.github.io/startupprofiler.html#profsettings) and VisualVM logfile saved after the unsuccessful profiling session (Help | About | Logfile).
Falko Modler
@famod
Thanks, will do!
Falko Modler
@famod

@jisedlac After not being able to reproduce the issue on my private PC I did some more research and I finally have a solution:

  1. 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

  2. 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.

philchung
@philchung
The Coherence 12.2.1 JVisualVM plugin has to be manually installed from a maven repo. Could it be added to the list of available plugins? https://search.maven.org/remotecontent?filepath=com/oracle/coherence/incubator/coherence-jvisualvm/12.5.0/coherence-jvisualvm-12.5.0.nbm