VisualVM is a visual tool integrating several commandline JDK tools and lightweight profiling capabilities. Designed for both production and development time use, it further enhances the capability of monitoring and performance analysis for the Java SE platform.
Questions tagged [visualvm]
653 questions
0
votes
1 answer
Java process use more memory than VisualVM shows
my java application works ~1 day,
(I use different libs for processing photo like ffmpeg, javacv, javacpp)
and then I see that my app use 9,5Gb RAM.
system monitoring tools
I don't understand why my app use so a lot of memory.
I set -Xmx6G
In…

Dinexpod
- 41
- 5
0
votes
1 answer
Can Visual VM detect which block of the code is taking most of the processing time?
I am trying to find out which part of the code of a method is taking the longest time to run.
The familiar way is to using System.nanotime or millisecond but can we do the same with java profiler like Visual VM?

D.T
- 437
- 8
- 20
0
votes
1 answer
VisualVM will not connect to remote, hangs at Preferences > Network
VisualVM connects to a local karaf instance without any problems but will not make a remote connection. Others on my team have this remote connection working.
Also VisualVM hangs when I go to VisualVM > Preferences ... > Network
This leads me to…

Ivana
- 643
- 10
- 27
0
votes
1 answer
VisualVM java profiling - self time execution?
I have the following Java method:
static Board board;
static int[][] POSSIBLE_PLAYS; // [262143][0 - 81]
public static void playSingleBoard() {
int subBoard = board.subBoards[board.boardIndex];
int randomMoveId =…

Logan Wlv
- 3,274
- 5
- 32
- 54
0
votes
0 answers
Difference between VisualVM JVM Arguments and GlassFish/Payara JVM Arguments it's normal?
I'm trying to starting use VisualVM for tracking some memory leaks I believe i had on my projects, I'm totally new to this tool so please excuse me if I'm asking some obvious thing.
The setup it's all fine, but in the JVM arguments of the Visual VM…

Roger Alves
- 13
- 2
0
votes
1 answer
Can I generate the interim java code in a scala project
I am trying to use VisualVM to profile my scala application. I have added the Go To Source plugin for VisualVM but of course it will only recognize Java code. Is there a way I can specify in my project build that it should also output the interim…

user79074
- 4,937
- 5
- 29
- 57
0
votes
1 answer
Using VisualVM with Maven Cargo
We use Maven Cargo to launch our service locally and run tests on it. Here is the configuration of the plugin:
org.codehaus.cargo
cargo-maven2-plugin
…

payne
- 4,691
- 8
- 37
- 85
0
votes
1 answer
Too many instances of DefaultEntry in Scala mutable.Map
Scala 2.11 mutable.Map is instantiating too many DefaultEntry.
Code to reproduce:
val map: mutable.Map[Int, String] = mutable.Map()
(1 to 1000000).foreach(n => map(n.toString) = s"number $n")
Here's the memory sample from visualvm:
I wasn't…

pedromorfeu
- 1,739
- 14
- 18
0
votes
1 answer
How do I find hotspots in a java web application (running in Tomcat)?
I have a web application that is taking for longer than it should to perform a specific task. I place the web application under load using ab with a concurrency of one, and I see tomcat using 100% of one CPU. I want to drill down into the…

Graham Leggett
- 911
- 7
- 20
0
votes
0 answers
increasing jvm memory with xmx does not increase my limit
I have tried increasing my java heap memory by adding -Xms10g and -Xmx12g to my eclipse.ini file (My RAM is 16GB, and I know 10G is too much but I just wanted to make sure that's not what's causing the issue). Eclipse seems to have absorbed that…

Roozbehan
- 478
- 5
- 15
0
votes
1 answer
VisualVM starting profiler causes memory usage to drop?
As seen in the Monitor for memory diagram (https://i.stack.imgur.com/sBKzO.png), around 4:35PM is when I started VisualVM Profiler and it caused memory usage to drop by ~7G which is quite significant. Why did this happen? It is as if starting the…

welkin
- 37
- 1
- 7
0
votes
1 answer
VisualVM - Heap dump greyed out
Issue: Once connected to application, the option for perform GC is enabled button. However the heap dump button is greyed out. Also in the "application" menu its greyed out. Does it work for apps connected via jmx locally?
Description: Connecting…

alwayslostCDN
- 3
- 1
0
votes
1 answer
adoptopenjdk 8 with openj9 + visualvm + jboss eap 7.1 - cpu usage 100%
i am testing out jboss eap 7.1 using adoptopenjdk 8 with openj9 (previously was using hotspot). i used visualvm to monitor it via jmx, and noticed that the reported cpu usage is consistently close to 100% (see attachment). when i used htop on the…

bluebloodedboy
- 305
- 3
- 10
0
votes
2 answers
What does it mean when an object is only referenced by 'this$0' in a heap dump analysis?
I analyzed a heap dump to find out why some multiple instances of a certain class are still in memory even after their purpose is over. What I found out is that the only reference to each instance is the object itself.
ScheduleWindow#1 has 'this$0…

Imal
- 481
- 1
- 6
- 14
0
votes
0 answers
How to fix the error "unable to open socket file" in VisualVM to profile memory of my application?
Why am I getting the message "Unable to open socket file: target process not responding or HotSpot VM not loaded" when I am trying to profiling memory using VisualVM?
I am trying to profile Flink TaskManager. This answer says that I have to…

Felipe
- 7,013
- 8
- 44
- 102