JConsole : Java Glossary

*0-9ABCDEFGHIJKLMNOPQRSTUVWXYZ (all)

JConsole
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_131\\bin\java.exe -Dcom.sun.management.jmxremote -jar "J:\Program Files\java\jdk1.8.0_131\ \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_131\\bin\jconsole.exe

If that does not work, add these system properties to the command line as well:
-Dcom.sun.management.jmxremote.authenticate=false
-Dcom.sun.management.jmxremote.ssl=false
-Dcom.sun.management.jmxremote.port=9999
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



This page is posted
on the web at:

http://mindprod.com/jgloss/jconsole.html

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

J:\mindprod\jgloss\jconsole.html
Canadian Mind Products
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.

IP:[65.110.21.43]
Your face IP:[3.143.1.253]
You are visitor number