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 ...