0

I stop seeing the local JVM processes in jvisualvm. I definitely have JVM processes running which I can verify with ps command.

$ ps aux | grep java -c
10

Here's empty jvisualvm window,

emprt jvisualvm

I tried adding JMX agent localhost:3333 as mentioned in this oracle article - Java VisualVM - Connecting to JMX Agents Explicitly. But I get can not connect to localhost:3333 using service:jmx

I see the processes in jconsole however.

enter image description here

prayagupa
  • 30,204
  • 14
  • 155
  • 192
  • 1
    I recommend switching to JMC if possible. I've encountered many bugs with VisualVM ([example](https://stackoverflow.com/questions/34052961/prevent-program-from-crashing-when-showing-allocation-stack-traces)), and JMC comes bundled with the JDK. – Vince May 06 '18 at 03:24
  • interesting. I was using `jvisualvm` for a while measuring perf of my app. The visual looked pretty good but now can even see the processes anymore. I actually started with `jmc` found it bit complicated than `jvisualvm`. But after your comment went back to `jmc` provides Memory/ Threads/JVM CPU usage. Thats all I care. Please you can post your comment as an answer with some desricption. – prayagupa May 06 '18 at 03:45
  • I just realized you are using Tomcat. Did you specify the [required configuration](https://stackoverflow.com/a/1915846/2398375) to enable JMX? – Vince May 06 '18 at 04:12

1 Answers1

2

Open VisualVm -> Window -> Application

Local JVM processes panel should appear on the left, with the same list of processes that JConsole shows

Rich P
  • 63
  • 1
  • 8