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
Paul Gardiner
@pgardiner
Do you have any idea where I can find the plugin, or source code for the Memory Pools plugin by Kodewerk? It was on the old java.net site, but I can't find it anywhere, including the Plugins page here.
Tomas Hurka
@thurka
@pgardiner You have to ask Kirk Pepperdine, he wrote this plugin. it looks like he is going to upload plugin sources at github. More details in oracle/visualvm#25
Tomas Hurka
@thurka
@philchung I don't know. You should ask someone from Coherence team, if they want to add it as official VisualVM plugin. If they are OK with it, I think I can add it to VisualVM plugins (JVisualVM will be complicated).
george udosen
@udoyen
hello all
@thurka I would like to know if JVisualVM and VisualVM are one and the same?
Jiri Sedlacek
@jisedlac
Hello @udoyen, Java VisualVM is a rebranded and relicenced VisualVM, the tools are almost identical in terms of features. Java VisualVM lacks some plugins which are available for VisualVM. See http://visualvm.github.io/releases.html for details on which VisualVM version is distributed in JDK releases.