Questions tagged [jvisualvm]

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.

365 questions
163
votes
1 answer

Difference between sampling and profiling in jVisualVM

VisualVM has two separate tabs for sampling and profiling. What is the difference between sampling and profiling in VisualVM?
Parag
  • 12,093
  • 16
  • 57
  • 75
100
votes
2 answers

VisualVM - Thread States

Can someone please explain me the difference between Sleeping, Wait, Park, and Monitor thread states in VisualVM. This is what I have found: Running: thread is still running. Sleeping: thread is sleeping (method yield() was called on the thread…
Ali Shah Ahmed
  • 3,263
  • 3
  • 24
  • 22
66
votes
2 answers

What are the differences between JVisualVM and Java Mission Control?

Other than the more 'advanced' GUI from Java mission control, how are they different? At first glance they seem to offer very similar functionality (Interpreting JMX data and Memory/CPU profiling). However, as they are both shipped with the JDK (I'm…
GoldenJam
  • 1,459
  • 1
  • 11
  • 17
59
votes
1 answer

How to find the default JMX port number?

I am running a Java application on Java 6 VM on a remote Windows XP, on which I can run jvisualvm.exe to connect to the running application automatically. Now I need to connect that application from my local computer, but I don't know the JMX port…
chance
  • 6,307
  • 13
  • 46
  • 70
52
votes
5 answers

How to check heap usage of a running JVM from the command line?

Can I check heap usage of a running JVM from the commandline, I mean the actual usage rather than the max amount allocated with Xmx. I need it to be commandline because I don't have access to a windowing environment, and I want script based on the…
Paul Taylor
  • 13,411
  • 42
  • 184
  • 351
42
votes
1 answer

what's the difference between sampler and profiler in JvisualVM?

I found there are two plug-in in JvisualVM, one is sampler and another is profiler. I also found they have a similar UI, however the results have a big difference, so what's the difference meaning for them? And why they have a big difference?
Jason
  • 1,115
  • 14
  • 25
41
votes
2 answers

jvisualvm doesn't list certain Java processes

I want to get a heap dump (suspected memory leak) of a certain Java process. However, when I start the jvisualvm tool, I cannot see any of the running Java processes. I have Google'd around about this and have already found a couple of articles…
tmbrggmn
  • 8,680
  • 10
  • 35
  • 44
41
votes
2 answers

VisualVM: CPU/Memory profiler stuck at "Connecting to the target JVM..."

I have recently reinstalled Windows and I am using JDK 1.8 u91 with the built-in VisualVM. I have checked my proxy settings to ensure that they are all off, both in Windows proxy settings and within the proxy settings of VisualVM. I have also tried…
Jire
  • 9,680
  • 14
  • 52
  • 87
36
votes
8 answers

Why isn't VisualVM showing all the normal tabs?

Usually I see all these tabs in VisualVM for locally running Java programs: However, I have one local program which is currently only showing me Overview and Monitor (even though it usually shows all those shown above): Also interesting is that…
jwl
  • 10,268
  • 14
  • 53
  • 91
33
votes
1 answer

How to find memory leaks using visualvm

I suspect we have a major memory leak in our ActiveMQ connection bridge - we're seeing typical memory leak patterns (app loads fine, slows down if it runs for prolonged periods of time or is restarted over and over again over short periods of time).…
IAmYourFaja
  • 55,468
  • 181
  • 466
  • 756
28
votes
7 answers

Does Java 6 open a default port for JMX remote connections?

My specific question has to do with JMX as used in JDK 1.6: if I am running a Java process using JRE 1.6 with com.sun.management.jmxremote in the command line, does Java pick a default port for remote JMX connections? Backstory: I am currently…
Bob Cross
  • 22,116
  • 12
  • 58
  • 95
26
votes
4 answers

Why a sawtooth shaped graph?

When I run the below mentioned code using NetBeans, the allocated heap size graph resembles a sawtooth shape. I am attaching the screen capture from JVisualVM which shows the heap allocation graph in with a sawtooth shape. The program is a simple…
buch11
  • 872
  • 3
  • 13
  • 29
25
votes
6 answers

Memory leak when redeploying application in Tomcat

I have WebApplication which is deployed in Tomcat 7.0.70. I simulated the following situation: I created the heap dump. Then I sent the Http request and in service's method I printed the current thread and its classLoader. And then I invoked…
Konstantin B.
  • 485
  • 1
  • 5
  • 16
24
votes
1 answer

Using VisualVM with IntelliJ

I'm trying to use VisualVM with IntelliJ to profile a Java application. I have the VisualVM Launcher plugin installed inside of IntelliJ. I press the play button with the orange circle in IntelliJ that launches VisualVM and opens the process when I…
Nathan Bierema
  • 1,813
  • 2
  • 14
  • 24
20
votes
2 answers

jvisualvm difference between live objects and allocated objects

As seen in the screenshot here, 0 live objects, 9 allocated objects. What's the difference between a live and an allocated object ?
Anonym
  • 7,345
  • 8
  • 35
  • 32
1
2 3
24 25