Java Tool Tutorials - Herong's Tutorial Notes
Dr. Herong Yang, Version 5.11

JMX Technology and 'jconsole' Tool

This section describes the JMX API and 'jconsole'. Java application can be monitored with 'jconsole' using out-of-the-box JMX settings when launching the SUN JVM.

"JMX (Java Management Extensions)": A Java standard API for management and monitoring of resources such as applications, devices, services, and the Java virtual machine. The JMX technology was developed through the Java Community Process (JCP) as Java Specification Request (JSR) 3, Java Management Extensions, and JSR 160, JMX Remote API.

JMX has been implemented into JDK 5 now. You can set out-of-the-box JMX monitoring and management properties when you start the JVM to run your Java application. This allows you to use local or remote JMX connectors to monitor your application.

JDK 5 offers a graphical user interface called "jconsole" that uses the JMX technology to monitor your Java application locally or remotely. The picture below shows you how "jconsole" works with your Java application:
jconsole JMX Local or Remote Connection

Sections in This Chapter

JMX Technology and 'jconsole' Tool

'jconsole' Command Options and Connection Window

'com.sun.management.jmxremote' - JMX Agent for Local Connection

'jconsole' - Connecting to a Local JMX Agent

'com.sun.management.jmxremote.port' - JMX Agent for Remote Connection

'jconsole' - Connecting to a Remote JMX Agent

Dr. Herong Yang, updated in 2008
JMX Technology and 'jconsole' Tool