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
0
votes
1 answer

Why is "Java Application" missing from Launch Configuration menu

I'm using Eclipse Version: 2022-12 (4.26.0) which I installed with the Eclipse Installer, and trying to set things up so I can run my applications under VisualVM (I had been able to do this successfully before, but using Eclipse Neon). However, I…
Mark Lavin
  • 1,002
  • 1
  • 15
  • 30
0
votes
1 answer

What causes VisualVM to report "CPU usage: unknown"?

I am running a Java application on Java 17.0.0 from Azul - Zulu17.28+13-CA, with bundled JavaFX. Everything is working fine, except that the CPU usage simply says "unknown". I've seen messages before about "unavailable with this JVM" or something…
swpalmer
  • 3,890
  • 2
  • 23
  • 31
0
votes
0 answers

visualvm does not show profiling information but shows sampling information

I am running a simple java program and trying to study the same using visual vm . Not trying to debug application performance. app consist of 2 simple classes and creates 2 thread , which does nothing but sleep. public class ThreadRunExample { …
Tanmay Patil
  • 659
  • 1
  • 4
  • 21
0
votes
0 answers

VisualVM is stopped by Cylance protect antivirus

By enterprise policy, we have to run Cylance protect antivirus on our workstations. It cannot be suspended or uninstalled. I can start VisualVM, but when I try to connect to a process, a message is displayed by Cylance protect that the process of…
The Calif
  • 11
  • 3
0
votes
1 answer

VisualVM heap dump "Summary" shows way more roots than "Objects->Preset: GC Roots" shows, what does it mean?

I suspect a slow memory leak caused by JNI code. I'm seeing the GC Roots # in the summary of consecutive heap dumps climbing. After two hours it showed 470,000 GC roots, after six hours, almost a million more GC roots, after 33 hours over 7…
swpalmer
  • 3,890
  • 2
  • 23
  • 31
0
votes
0 answers

How can I investigate a deadlock on PrintStream.write() after call to log4j

We are experiencing random freezes in our java client program. The reproduction of the freeze has been elusive, but I have been able to attach visualVM to a running instance in that condition. Unfortunately that version was obsfucated but the…
MPIchael
  • 176
  • 7
0
votes
1 answer

How is it possible for an object not being referenced by other objects in Java heap dump?

I opened a heap dump in VisualVM and some objects don't have incoming references to them. They are unreachable. I wonder: is it OK to see them? Are they subject to a next GC and just slipped into the heap dump? The full GC usually has 10-20 minutes…
gavenkoa
  • 45,285
  • 19
  • 251
  • 303
0
votes
1 answer

How to properly see all threads in visualvm

I am trying to learn about heapdumps and threaddumps and in doing that created a very simple application which is using completable future : public static void main(String[] args) throws InterruptedException { for (int i = 0; i < 40; i++) { …
Akash tiwari
  • 213
  • 1
  • 10
0
votes
3 answers

Need help running visualvm on Windows when under VMWare

I am doing some Java development on Windows 7 x64 running inside VMWare Fusion 3.x (OSX). I have installed JDK6 (update 26), set JAVA_HOME to the path (no trailing slash), and restarted my command prompt. I can successfully launch the program.…
cremes
  • 33
  • 1
  • 4
0
votes
1 answer

Filter value in java visualvm

I'm trying to filter the String value, but it's not supported in VisualVM. How can I do that?
daisy
  • 22,498
  • 29
  • 129
  • 265
0
votes
0 answers

VisualVM GC Activity is reported as zero

I am using OpenJDK, Java 8, VisualVM 1.2.1 (same JDK for application being profiled). In VisualVM, under the Monitor tab, we are able to see CPU usage and % of GC Activity. The issue is, % of GC Activity is always 0 when VisualGC is reporting GC…
user_1357
  • 7,766
  • 13
  • 63
  • 106
0
votes
1 answer

unable to display jstad monitoring in VisualVM tool

I have EC2 instance hosting Tomcat application. It has JVM installed within. I am trying to monitor VisualGC from my workstation. In all those application instances we are able to establish the JMX connections in the visual vm tool, but for the…
muralcode
  • 1
  • 1
  • 3
0
votes
1 answer

How do we know which type of GC(young/full) is currently being executed in my Java Program using VisualVM or any other tool?

I am doing a performance analysis of a Program using VisualVM tool. I was able to check CPU usage and heap usage of the program but couldn't figure out which type of GC (young GC/full GC) is executing currently. Is there anyway to find it using…
Raki
  • 3
  • 4
0
votes
1 answer

What is the difference between "CPU samples" tab and "Thread CPU Time" tab of visualvm sampler?

When I use visualvm, I get confused about "CPU samples" tab and "Thread CPU Time" tab of the sampler. The following screenshots show the same thread "Monitor Ctrl-Break" respectively in these two tabs: CPU time in "CPU samples" tab is 1082903ms. CPU…
0
votes
0 answers

How to diagnose high self time in VisualVM?

I am trying to implement an algorithm using different data structure implementations to see their difference, and noticed that for the exact same algorithm using a different data structure, the "Self Time" in the algorithm method is very high. Is…
Ymi
  • 609
  • 6
  • 18