O'Reilly logo

Java EE 6 Cookbook for Securing, Tuning, and Extending Enterprise Applications by Mick Knutson

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Profiling memory with jVisualVM

There are several terminal applications freely available to monitor memory, CPU, application threads, classes, and to manage JMX services exposed by a running application. The Java Development Kit (JDK) is distributed with a terminal called jConsole (%JAVA_HOME%\bin\jconsole.exe). Since the release of JDK 1.6_07, it also includes jVisualVM (%JAVA_HOME%\bin\jvisualvm.exe) which is a newer and more robust terminal application based on the Java.NET project called VisualVM, which can be found at http://visualvm.java.net/.

This recipe will first cover running and configuring jVisualVM, and will then show you how to leverage jVisualVM to profile memory of a running Java application with additional plugins in order to ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required