Book Image

Clojure High Performance Programming, Second Edition - Second Edition

By : Shantanu Kumar
Book Image

Clojure High Performance Programming, Second Edition - Second Edition

By: Shantanu Kumar

Overview of this book

Table of Contents (15 chapters)
Clojure High Performance Programming Second Edition
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

Profiling code with VisualVM


The Oracle JDK (also OpenJDK) comes with a powerful profiler called VisualVM; the distribution that comes with the JDK is known as Java VisualVM and can be invoked using the binary executable:

jvisualvm

This launches the GUI profiler app where you can connect to running instances of the JVM. The profiler has powerful features (https://visualvm.java.net/features.html) that can be useful for finding various bottlenecks in code. Besides analyzing heap dump and thread dump, VisualVM can interactively graph CPU and heap consumption, and thread status in near real time. It also has sampling and tracing profilers for both CPU and memory.