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
4
votes
0 answers
Schedule VisualVM to take a snapshot at certain intervals
Is there a way to take a Snapshot of CPU and Heap usage over time.
Say every hour for 2 days?

DarVar
- 16,882
- 29
- 97
- 146
4
votes
0 answers
jvisualvm 1.3.5 unable to get heap dump from my remote linux server
I want to get heap dump of jvm running on my remote linux prod server . The new jvisualvm 1.3.5 has the link to get heap dump but when I try to get heap dump I get the error telling cannot take heap dump from the remote server for…

user884424
- 573
- 1
- 12
- 33
4
votes
1 answer
Lag due to threads swapping
I have come across some recent lag spikes in a game I have been developing. It is consistent, happens around the same time. Using the java profiler jvisualvm I have found it occurs at the same time a particular thread seems to restart or something…

Perry Monschau
- 883
- 8
- 22
4
votes
0 answers
Duplicates in loaded classes shown by TraceClassloading
To track a permgen space OOM in our Tomcat tomcat-6.0.28 dev environment, we added TraceClassloading, TraceClassUnloading and JMX monitoring.
The server has three webapps (devapp1,2,3) with almost identical frameworks and libraries (Spring,…

jalex
- 41
- 2
3
votes
1 answer
clojure reduce function uses all cores even though it seems to be single threaded
(defn sum [numbers]
(reduce + numbers))
(def numbers (into [] (range 0 100000000)))
(time (sum numbers))
The above was the code that was ran.
Simply adding up a lot of numbers.
This line was executed in the repl multiple times:
(time (sum…

Cui Pengfei 崔鹏飞
- 8,017
- 6
- 46
- 87
3
votes
0 answers
Cant find JVisualVM executable in JDK bin
I am trying to install the JVisual VM in eclipse.
Following these instructions and these, the executable should be located in my JDK bin directory, but I do not see it. Followed a number of other tutorials and they all state same.
I have used…

dancingbush
- 2,131
- 5
- 30
- 66
3
votes
2 answers
Display main class name of each JVM available like VisualVM
VisualVM does it really nice, each full main class name is displayed in the left side-bar navigation. How are these names retrieved? The Attach API offers all running JVMs with a display name, however, some display names seem a little bit bloated,…

Konrad Reiche
- 27,743
- 15
- 106
- 143
3
votes
0 answers
Heap Size of a Java application is changing frequently
Allocated Heap Size is fluctuating for the java app.
I am observing in JVisualVM that Heap Size of my application is fluctuating very often. I am observing decent GC activity as well.
I am of assumption that once JVM allocates a specific Heap Size,…

KUMAR SAURABH
- 41
- 2
3
votes
1 answer
What is the java.lang.Integer retained size?
I'm using Java Hotspot 1.8.0_191-b12 (64 bit, Xmx < 32 GB) and I'm looking at a jmap dump (hprof format) with various tools.
VisualVM (and NetBeans profiler based tools) reports differ a lot from Yourkit and Eclipse Memory Analyzer.
I looked at the…

jack malkovick
- 503
- 2
- 14
3
votes
2 answers
VisualVM fails to start
After upgrading to Ubuntu 18.10 VisualVM 1.3.9-1 cannot start. It was installed through the package manager and I don't really want to install manually. I tried opening it with logging like:
visualvm…

MitchBroadhead
- 811
- 14
- 23
3
votes
0 answers
how to export MBeans data/statistics from JVisualVM
When I do a JMX connect to a java application using JVisualVM with MBeans plugin installed, I could see different MBeans configured in the application. However in order to analyze an issue. I need to export this data, from a production system, to a…

Sudheer Avula
- 57
- 6
3
votes
0 answers
Enable JMXRemote monitoring
OS=Solaris 5.1
Java=1.6.0_101-b14
I'm having an issue with a java email daemon and want to monitor it via Java VisualVM. I have modified my script to enable jmxremote monitoring.
-Dcom.sun.management.jmxremote…

gillockb
- 31
- 2
3
votes
1 answer
Unable to profile JBoss 5 using jvisualvm
I've been getting some java.lang.OutOfMemoryError: GC overhead limit exceeded errors while running my Java app overnight:
java.lang.OutOfMemoryError: Java heap space
Dumping heap to java_pid6376.hprof ...
Heap dump file created [512149941 bytes in…

Matt Ball
- 354,903
- 100
- 647
- 710
3
votes
2 answers
How to match theoretical thread states and states showed by jvisualvm
If we will google something like 'java thread state' we will see approximately this diagram:
But if we will open jVisualVm we will see following:
Can you help to meatch these diagrams?
Sleeping state is just Thread.sleep()? Special case of the…

gstackoverflow
- 36,709
- 117
- 359
- 710
3
votes
1 answer
JMX connection fails with "handshake failed...expected JDWP-Handshake"
I'm trying to connect VisualVM to a remote JMX. IntelliJ can connect without hassle, but VisualVM fails with the following in log output:
Listening for transport dt_socket at address: 5005
Debugger failed to attach: recv failed during handshake:…

crockpotveggies
- 12,682
- 12
- 70
- 140