Viewing the memory used using VisualVM for HotSpot
The VisualVM application lets you view real-time JVM data such as memory and thread usage and garbage collection cycles. This recipe will show how to connect to local and remote JVMs in order to view this information.
Getting ready
For this recipe, you will need to have the Hotspot JVM installed on your local machine. We'll use the VisualVM application built in to the JDK 6 release so there is no need to download the available, standalone VisualVM distribution.
We'll attach VisualVM to the WebLogic Administration server to visualize its memory usage at runtime. To do this, you need to ensure that the Administration server is configured to start with the Hotspot JVM.
We will extend the recipe by connecting to a remote Hotspot VM to show the steps required to view remote JVM data.
How to do it…
Perform the following steps to view the memory used by Hotspot, using VisualVM:
Navigate to the domain's home directory:
%MIDDLEWARE_HOME%/user_projects/domains...