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
6
votes
0 answers

Java GC runs too often even if huge Memory is Available

I checked current memory behaviour for a Java application and I notice Garbage Collector initially rarely runs but in the long period it continues to run more often, even if I set no limits for max memory usage (server has 8Gb of free…
6
votes
4 answers

Profiling tomcat application with VisualVM

I am trying to run visualvm under the username tomcat6 because apparently visualvm can only find applications running under its username. So by default it is only finding applications running under my username. I have been able to connect visualvm…
user782220
  • 10,677
  • 21
  • 72
  • 135
6
votes
1 answer

Profiler tab not coming in visualvm for remote jmx connection

Am trying to profile a remote tomcat appln which is my staging env. But I am unable to get the profiler tab. Tried googling but I couldnt find the exact issue here. Both my remote and local jdk versions are same. Both are java 8. Am using visualvm…
Manoj
  • 63
  • 1
  • 5
6
votes
1 answer

OQL syntax for counting Strings matching criteria

Please help me. I analyse my heap dump in VisualVM. How can I get amount of all Strings with value == "0"? I have the following query: select count(s) from java.lang.String s where s.toString().equals("0"); But it doesnt work. I want to receive…
MeetJoeBlack
  • 2,804
  • 9
  • 40
  • 66
6
votes
1 answer

Getting Java VisualVM data from the command line

I'll start off with saying that I have just about no experience with Java VisualVM. However, it contains the information that some developers would like to see. When I open it up for my application, it contains a graph for CPU, Memory, Classes,…
user2869231
  • 1,431
  • 5
  • 24
  • 53
6
votes
1 answer

Profiling a webapp on JBoss 7 with JVisualVM

I would like to profile my webapp with JVisualVM on JBoss 7. So I launch that tool, and open the JVM running JBoss. I click on "Profiler", "Settings" and in "CPU settings" I put that : "Start profiling from classes:" :…
Anthony O.
  • 22,041
  • 18
  • 107
  • 163
6
votes
1 answer

JVisualVM is unable to connect to process using the --openpid argument

I have an application that is running as a win-service (using Apache-Procrun). I want to monitor that application with JVisualVM. I've used the commandline argument --openpid without success, ironically the old JConsole managed to connect to…
Chriss
  • 5,157
  • 7
  • 41
  • 75
5
votes
1 answer

Warning of class sharing doesnt allow me to profile locally (Windows) using visualVM

When I launch my java app from Eclipse Helios I see it in the list of local applications on the visualVM. However, I go to the Profiler tab and I can't profile either by CPU or Memory criteria. I get the following message: "WARNING! Class sharing…
Tabcina
  • 75
  • 5
5
votes
1 answer

VisualVM CPU graph on multicore machines

On a multicore machine, does the JVisualVM CPU usage graph show total machine CPU capacity or something else? As an example, on a machine with 16 cores, if I see CPU usage in JVisualVM going up to 50 percent, does that mean the equivalent of 8 cores…
Rich
  • 15,602
  • 15
  • 79
  • 126
5
votes
2 answers

How can I remove a “Java Frame” GC Root reference to a Runnable when I dump a heap in jvisualvm?

I'm using jvisualvm to check for memory leaks in my application. When I do a heap dump, sometimes several objects are being held open that should have been garbage collected. When I do a "Show Nearest GC Root" command on them, it shows me that the…
Erick Robertson
  • 32,125
  • 13
  • 69
  • 98
5
votes
0 answers

How can I get jVisualVM to display longer timeframes?

I am trying to use jVisualVM to monitor the long-term heap use of a few applications I am developing. Currently it only shows the past hour under the "Monitor" tab. Is there any way I can view a longer timeframe, and even better, any way I can view…
Jeff
  • 51
  • 4
5
votes
1 answer

How to enable tracing profiling in jvisualvm?

I've read that jvisualVm can do tracing profile. So I ran jvisualVm on my local pc and I see following: According the materials I read that jvisualVm allows to use tracing profiling on Profiler tab and it must look like: But as you can see I don't…
gstackoverflow
  • 36,709
  • 117
  • 359
  • 710
5
votes
2 answers

Unable to launch the VisualVM Launcher Plugin in Intellij

I'm experiencing an issue launching my application with the VisualVM Launcher plugin for Intellij. The message I recieve when lauching is displayed below: Error running 'Desktop': appId=81286153463824, jdkHome=null,…
HDubz
  • 167
  • 1
  • 2
  • 14
5
votes
1 answer

Profiling in VisualVm Using IntelliJ with Debug

I want to profile my test application started by IntelliJ. For profiling I useVisualVm. I started the java tool with the parameter -J-Dorg.netbeans.profiler.separateConsole=true. I started the application with the VM parameter -Xverify:none,…
Klemens Morbe
  • 595
  • 9
  • 24
5
votes
3 answers

Used vs Max vs Size -Jvisualvm?

In jvisual vm i see three attributes under Monitor>Heap, i see 3 attributes depicting memory details all with differnt figures Size : ? Used :- I believe this is the actual memory used Max :- I believe this is the max heap size allocated to java…
scott miles
  • 1,511
  • 2
  • 21
  • 36