jvisualvm is a Java Virtual Machine monitoring, troubleshooting and profiling tool. It is part of Oracle/Sun JDK since JDK 6 update 7 and is based on open-source project VisualVM.
Questions tagged [jvisualvm]
365 questions
20
votes
1 answer
Issue launching project with VisualVM eclipse plugin
An internal error occurred during: "Launching ModificationToolkit".
java.lang.NullPointerException
at org.eclipse.jdt.launching.JavaLaunchDelegate.launch(JavaLaunchDelegate.java:101)
at…

Gorbles
- 1,169
- 12
- 27
20
votes
4 answers
string search using OQL
I am using VisualVM to analyze a core dump. I suspect some XML objects to be causing the leak but there are way too many String objects to go through one by one.
Can I use OQL to search String that begin with 'GH' ?
thanks for any help.

Geek
- 23,089
- 20
- 71
- 85
18
votes
4 answers
Unable to use JVisualVM profiling for Tomcat7 running as a service on Windows7
I'm trying to profile a Servlet running in Apache Tomcat (7.0.34) as a service on Windows 7 (64 bit) using JVisualVM (JDK 1.7.0 - 06, 64 bit) running locally.
Initially I had the problem of Tomcat not showing in the list of local applications due to…

Mr Anderson
- 181
- 1
- 4
18
votes
3 answers
What does "retained size" mean in jVisualVM's memory inspector?
Jvisualvm heap dump on summary tab has functionality to inspect bigest objects by retained size.
What does retained really mean? How size of an object tree is calculated and shown here?
In case I can see here object (10M) and it's member object…

Mike
- 20,010
- 25
- 97
- 140
16
votes
2 answers
What are safe points and safe point polling in context of profiling?
I am facing a situation where I do not see some method calls not being recorded by the VisualVM application. Wanted to find out the reason and came across this answer on SO. The third point mentions about a potential issue of the sampling…

Geek
- 26,489
- 43
- 149
- 227
14
votes
3 answers
jvisualvm - automatically (JMX) reconnect to application?
Is there any way to reconnect disconnected JMX connection in jvisualvm? When monitored JMX enabled application restarts, I have to restart jvisualvm to reconnect it. Am I missing something?
Here are my jvisualvm details:
Version: 1.6.0_22 (Build…

Michał Kowalczuk
- 955
- 1
- 7
- 13
14
votes
2 answers
Memory allocation behaviour with Java 1.8 in Tomcat 6 and Tomcat 8
Related question: Garbage collector usage when upgrade from Java 6 + Tomcat 6 to Java 8 + Tomcat 8
I have a set of webapps, compiled with Java 8. If I run them in Tomcat 8, I get a lot of minor GC collections with a random memory allocation. In…

Fran Montero
- 1,679
- 12
- 24
14
votes
2 answers
Better options to view JMX beans other than Jconsole
JConsole has quiet a buggy view to monitor JMX published counters.
What are the other alternatives ?
I am unable to find any, other than JVisualVM which in effect uses the same view

Basit Anwer
- 6,742
- 7
- 45
- 88
13
votes
1 answer
Do Java Mission Control and Flight Recorder deliver same functionality as VisualVM?
The (relatively) new built-in performance monitor/profiler for Java is Mission Control. The Oracle docs advertise that they can be used in production without incurring performance hits (less than 2%):
The tool chain [Mission Control + Flight…

smeeb
- 27,777
- 57
- 250
- 447
13
votes
1 answer
Cannot connect to JMX/RMI server with VisualVM for no apparent reason
I have my OSGi application launching with the following command in my remote machine:
java -Dcom.sun.management.jmxremote \
-Dcom.sun.management.jmxremote.port=8080 \
-Dcom.sun.management.jmxremote.local.only=false \
…
user3926784
12
votes
2 answers
jvisualvm can not locate Java installation
I am facing following issues while running jvisualvm -
Java Related environment variables set on machine
Following are PATH variable details, there is no path mentioned as…

Ganesh C
- 203
- 1
- 2
- 10
12
votes
3 answers
Java VisualVM does not show/list my tomcat java process
I am using jdk64 and my java version is 1.6.0_24. I am running both (Tomcat java process and VisualVM) processes as Administrator on Windows Server 2008.
Tomcat is running with -Xmx7196m, where as jvisualvm is running with -Xms24m and -Xmx256m.…

Kuldeep Jain
- 8,409
- 8
- 48
- 73
12
votes
4 answers
CPU and profiling not supported for remote jvisualvm session
When monitoring a remote app (using jstatd) I can neither profile nor monitor CPU consumption. Heap monitoring (provided I do not use G1) works. jvisualvm provides the message "Not supported for this JVM." in the CPU graph window.
Is there anything…

yawn
- 8,014
- 7
- 29
- 34
12
votes
2 answers
How to show profiler tab in Java VisualVM?
I have launched a java application with the following arguments :
java
-server
-Dcom.sun.management.jmxremote.port=6789
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.authenticate=false
…

Stephan
- 41,764
- 65
- 238
- 329
11
votes
4 answers
Get heap dump from a remote application in Java using JVisualVM
I run JVisualVM (Windows XP, Sun Java 1.6.0.13, 32 bit client VM) to monitor a distant application (Linux, Sun Java 1.6.0.07, 64 bit server VM). Before starting the actual remote application, I launch on the remote machine jstatd using an all access…

Philipp
- 4,659
- 9
- 48
- 69