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
11
votes
0 answers
Java Visual VM : Profiling Error
I am trying to profile a simple algorithm: "Insertion Sort". The code takes the number of elements to sort and then randomly creates those many elements after which the sorting starts.
I am using Visual VM for profiling. However when I start…

RDM
- 1,136
- 3
- 28
- 50
11
votes
1 answer
Can visualvm connect automatically via JMX to a remote process?
I have a Java process running on a remote machine, and the process sets up some mbeans. I also have jstatd running on that machine as the same user as the Java process. (The mbeans can be set up programmatically or using…

Joe Kearney
- 7,397
- 6
- 34
- 45
11
votes
4 answers
jvisualvm connect to remote jstatd not showing applications
I started a jstatd on the remote server (Ubuntu Server 14.04):
jstatd -J-Djava.security.policy=.jstatd.all.policy -J-Djava.rmi.server.logCalltrue -p 9099
and try to connect to it with jvisualvm on windows. I checked netstat, the connection is…

zorro
- 165
- 1
- 3
- 11
11
votes
3 answers
How to use VisualVM and JMX?
I have tried every recipe in the book, but things just wont work today...
I am trying to use VisualVM to profile my Java app running in a remote server, so I googled and googled and googled for ways to do this and I end up with this solution:
java…

PedroD
- 5,670
- 12
- 46
- 84
9
votes
5 answers
How to do load testing using jmeter and visualVM?
I want to do load testing for 10 million users for my site. The site is a Java based web-app. My approach is to create a Jmeter test plan for all the links and then take a report for the 10 million users. Then use jvisualVM to do profiling and check…

Daemonthread
- 443
- 3
- 9
- 16
9
votes
2 answers
How do I automatically attach JVisualVM to a short-lived program?
Briefly reading tutorials and playing with JVisualVM, I can manually attach it to a long-running server or Swing application, but I'd also like to use it for short programs that run in under a second.
I suppose I could have my program block on the…

ide
- 19,942
- 5
- 64
- 106
9
votes
1 answer
Java 8 mdmp dump file analyzing with jvisualvm Add VM Coredump grayed / blanked out
I found Tool for analyzing java core dump, which is really close, but when I open up jvisualvm and open "File" menu, the "Add VM Coredump" option is not available. When I run the other option listed in the overflow article I don't get a thread dump.…

visch
- 707
- 5
- 23
9
votes
2 answers
Daemon Threads, thread count, and total started thread count
I have a simple code for a multi-threaded echo server in Java (it returns whatever received back to the clients). I'm profiling various resources of the server including the thread statistics. Below are some of these statistics as per number of…

Tina J
- 4,983
- 13
- 59
- 125
9
votes
2 answers
Is there a call tree view available for jvisualvm or NetBeans profiler?
JProfiler offers a live call-tree view so you can see what's using CPU in real-time and drill down for the details. Reset the counts to zero at any time, rinse, repeat.
I'm currently without that tool, and trying to get by with free/open…

Mark Bolusmjak
- 23,606
- 10
- 74
- 129
9
votes
2 answers
jvisualvm: Software caused connection abort: socket write error
When I want to profile a java programm started from eclipse with jvisualvm 1.3.8 I get the error message within eclipse console:
Software caused connection abort: socket write error.
This also happens when I start the program without eclipse (java…

Martin Dames
- 264
- 3
- 13
9
votes
3 answers
Increasing the max size of jvisualVM OQL resultset
I have a memory dump file which has nearly 5000 instances of a particular object. These objects are to be written into a DB, and the way i am doing this is to write an OQL query in jvisualvm to generate a string that will serve as an SQL insert for…

Mukul Jain
- 1,807
- 9
- 26
- 38
8
votes
1 answer
Export VisualVM application configuration, then importing
I am moving from VisualVM 1.3.2 to 1.3.3 and want to move all of the remote servers and applications I have setup to this new installation.
I have looked at %HOMEPATH%\Application Data.visualvm\1.3.2 and see configuration for modules and preferences…

Mick Knutson
- 2,297
- 3
- 25
- 48
8
votes
1 answer
How does JConsole decide what order to use JMX keys to render a tree?
When viewing JMX beans in JConsole it renders all the beans under a given domain part as a hierarchy. (JVisualVM has the same behaviour with the JConsole MBeans plugin.)
I realise that JMX object names are not hierarchical, but nevertheless JConsole…

dty
- 18,795
- 6
- 56
- 82
8
votes
1 answer
Java VisualVM CPU usage and processor affinity
In my experience today, I find that Oracle's Java VisualVM shows cpu usage as a percent of total machine cores, even when the JVM being monitored has a limited process affinity set in the OS. This is in the "monitor" tab.
Limiting the monitored jvm…

matanster
- 15,072
- 19
- 88
- 167
8
votes
2 answers
permgen, but Java VisualVM says "No GC root found"
I have a very simple 'Hello world' type web application (Spring 3.2.1, Hibernate 4.1.9) on stopping/restarting the web-app Tomcat 7.0.26
The following web applications were stopped (reloaded, undeployed), but their
classes from previous runs are…

kmansoor
- 4,265
- 9
- 52
- 95