VisualVM
VisualVM is a Java monitoring and profiling tool for inspecting running applications, JVM behavior, resource usage, and performance.
Troubleshooting Java, Second Edition
VisualVM is a free Java monitoring and profiling tool that provides runtime information about applications and the JVM.
- How it is used
- Uses runtime monitoring and profiling to investigate Java CPU, memory, thread, allocation, deadlock, and retention problems.
- How deep it goes
- Walks from installation through runtime widgets, sampling, instrumentation, thread dumps, and heap-dump inspection, while deferring root-cause heap analysis to detailed dumps.
- Examples
- Demonstrates unsafe producer-consumer threads, an accumulating Cat list, a million-object endpoint request, and frozen threads entering deadlock.
- What you can do after
- Diagnose/debug with it by correlating runtime graphs, thread states, sampled objects, thread dumps, and heap references with application behavior.
Read how Troubleshooting Java, Second Edition explains VisualVM →
Troubleshooting Java: Read, debug, and optimize JVM applications
VisualVM is a visual tool for monitoring and troubleshooting Java applications, including their threads and resource usage.
- How it is used
- Uses a visual profiler to investigate Java process resource consumption and frozen threads.
- How deep it goes
- Walks through installation, local connection, resource graphs, thread views, and thread-dump collection.
- Examples
- Investigates unsynchronized and synchronized producer-consumer threads and captures a dump from a deadlocked application.
- What you can do after
- Diagnose resource and thread problems with VisualVM, including collecting a thread dump for a suspected deadlock.
Read how Troubleshooting Java: Read, debug, and optimize JVM applications explains VisualVM →
Related concepts
- heap dumpproduces · A heap dump is a snapshot of the objects and related state held in an application's managed heap at a particular time.
- profilerkind of · A profiler is software that measures and analyzes a program’s runtime behavior or resource use to characterize performance and identify bottlenecks.
- thread dumpproduces · A thread dump is a diagnostic snapshot of the threads in a running program, including their states and stack traces.
- samplinguses · Sampling is a procedure for selecting items from a collection or generating outcomes from a probability distribution according to a specified rule.
Questions about VisualVM
What is VisualVM?
VisualVM is a Java monitoring and profiling tool for inspecting running applications, JVM behavior, resource usage, and performance.
Which Manning books explain VisualVM?
Troubleshooting Java, Second Edition and Troubleshooting Java: Read, debug, and optimize JVM applications.
What should I know before learning VisualVM?
Manning books that teach VisualVM usually introduce Java first.
What is VisualVM a kind of?
VisualVM is a kind of profiler. A profiler is software that measures and analyzes a program’s runtime behavior or resource use to characterize performance and identify bottlenecks.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.

