Questions tagged [visualvm]

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.

653 questions
104
votes
6 answers

How do I provide JVM arguments to VisualVM?

I'm using VisualVM from JDK 1.6.0_26 to profile a Java webapp running under Tomcat, but VisualVM often tells me that it doesn't have enough memory to take a snapshot, and to use the -Xmx switch to provide more memory to Netbeans. The problem is, I'm…
Mike Partridge
  • 5,128
  • 8
  • 35
  • 47
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
70
votes
1 answer

VisualVM and Self Time

I've been searching all over for a consistent and clear explanation of what 'self time' actually refers to in the VisualVM context and how does it differ to 'self time (cpu)'. Also does 'self time [%]' refer to self time or self time cpu. There…
AndyF
  • 1,074
  • 1
  • 12
  • 19
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
62
votes
6 answers

Redefinition failed with error 62 while trying to profile an application

If I try to profile application, (which is prepared under Eclipse, but running from command line) with the help of VisualVM, I get the following error message Simultaneously, the project folder is fouled with newly created class files. Although…
Suzan Cioc
  • 29,281
  • 63
  • 213
  • 385
61
votes
4 answers

Profile Tomcat Application With VisualVM

I would like to profile an application that runs on Tomcat with the VisualVM tool. Unfortunately, when I tell VisualVM to profile Tomcat, Tomcat prints out a couple of messages indicating it is connecting to a profile tool and then simply…
rwsimmo
  • 1,657
  • 1
  • 13
  • 10
59
votes
4 answers

how to profile application startup with visualvm

As far as i can tell, you can only profile a running application using VisualVM. Does anyone know of a way to profile the launch and startup of a java application using VisualVM? I'm convinced there must be a way, otherwise it would be a major…
pstanton
  • 35,033
  • 24
  • 126
  • 168
57
votes
7 answers

Total method time in Java VisualVM

In Java VisualVM, is there any way to display total method time, rather than "self time"? (The latter is not particularly useful, since it doesn't tell you anything about how much time methods actually take to run.) If not, is there any standalone…
kpozin
  • 25,691
  • 19
  • 57
  • 76
55
votes
9 answers

VisualVM over ssh

I've read Visual VM remotely over ssh but I think I've not fully understood because it was not working for me :-( Please can someone give some example? ssh -D 9696 login@ip.of.external.machine and visualvm.exe…
bgraves
  • 788
  • 1
  • 11
  • 23
50
votes
15 answers

VisualVM "not supported for this JVM" on all local applications?

I have already spent a long time to load and test my application, now I need to profile it. But unluckily, the VisualVM always says "not supported for this JVM" on my local applications? The applications were started on the same JVM with VisualVM.
Loc Phan
  • 4,304
  • 4
  • 29
  • 35
44
votes
6 answers

How to memory profile in Java?

I'm still learning the ropes of Java so sorry if there's a obvious answer to this. I have a program that is taking a ton of memory and I want to figure a way to reduce its usage, but after reading many SO questions I have the idea that I need to…
Lostsoul
  • 25,013
  • 48
  • 144
  • 239
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

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
41
votes
7 answers

Java VisualVM hangs connecting to locally process launched from eclipse

I'm trying to connect jvisualvm installed with jdk1.7.0_04 to a locally running java process. When I do this, jvisualvm shows a progress bar in the bottom left saying its connecting to the process, and then never responds again. The java process…
lukestevo
  • 421
  • 1
  • 4
  • 6
36
votes
7 answers

Why won't the VisualVM Profiler profile my application?

I've created a simple 1 file java application that iterates through a loop, calls some functions, allocates some memory, adds some numbers, etc. I run that application via eclipse's Run As->Java Application. The running application shows up in…
Luke
  • 3,742
  • 4
  • 31
  • 50
1
2 3
43 44