JConsole : Java Glossary


A tool from Oracle to let you monitor Java programs while they are running, a part of a suite of tools called JVisualVM. It is available in JDK (Java Development Kit) 1.6.0_07+, It will tell information about performance and resource management, especialy memory and garbage collection. It is designed to work remotely attaching to the app via an MBean (Managed Bean) server. There is nothing to download. Everything you need comes bundled in the JDK. You invoke it to monitor a locally-running Java app like this:
rem demonstrate JConsole

rem load the sample progrom to monitor: Java2Demo, enabling monitoring with com.sun.management.jmxremote property
rem The following should be all on one line:
J:\Program Files\java\jdk1.8.0_112\\bin\java.exe -Dcom.sun.management.jmxremote -jar "J:\Program Files\java\jdk1.8.0_112\ \demo\jfc\Java2D\Java2Demo.jar"

rem in a separate BAT (Batch) file do the following so you can have both programs running at once.
rem load JConsole to watch Java2Demo
J:\Program Files\java\jdk1.8.0_112\\bin\jconsole.exe

If that does not work, add these system properties to the command line as well:
Pick an unused socket to use for communication.

JVisualVM includes an API (Application Programming Interface) which could allow you to programmatically access to the same information, although it is unclear you can do that from the same JVM (Java Virtual Machine) itself (i.e. a Java application which monitors its own JVM).

Learning More

Oracle’s Technote Guide on JVisualVM : available:
Oracle’s Technote Guide on JConsole : available:

This page is posted
on the web at:


Optional Replicator mirror
of mindprod.com
on local hard disk J:

Please the feedback from other visitors, or your own feedback about the site.
Contact Roedy. Please feel free to link to this page without explicit permission.

Your face IP:[]
You are visitor number