Dashboard > GridGain User Guide > Table Of Contents > JMX Instrumentation
JMX Instrumentation
Added by architect, last edited by architect on Apr 14, 2008  (view change)
Labels: 
(None)


JMX MBeans

Most of functionality provided by GridGain is implemented via Service Provider Interface (SPI) modules. As discussed above there are 6 types of SPIs in GridGain 1.0:

Every SPI is responsible for providing its own JMX instrumentation (if required). GridGain kernel provides the only JMX Bean that is always available since it is controlled by non-SPI module, namely kernal. Note that all SPI implementations provided by GridGain (those that are shipped with the product) provide JMX instrumentation. Note also that JMX instrumentation provided by built-in SPI modules is intended for basic monitoring and administration purposes - not for programmatic remote control of SPI module.

Here is the list of MBean interfaces for all built-in SPI implementations and kernal:

JConsole

JConsole is a standard JMX console that ships with JDK starting with version 5. It allows to access JMX instrumentation of the VM itself as well as any user defined MBeans as long as this VM is started with management agent.

To start an application with the management agent for local monitoring, set the com.sun.management.jmxremote system property when you start the application in the command line:

JDK_HOME/bin/java -Dcom.sun.management.jmxremote

where JDK_HOME is the directory containing the JDK.

Windows Domain and JConsole

If you are using standard JDK JConsole on Windows you may encounter an undocumented behavior when you cannot locally connect to the JConsole if you logged in into Windows domain. In this case you will need to connect as 'remote'. For more information on troubleshooting see the following link: http://java.sun.com/j2se/1.5.0/docs/guide/management/faq.html

To start JConsole, run

JDK_HOME/bin/jconsole

Note that start scripts shipped with GridGain gridgain.{sh|bat} start GridGain node instance with management agent enabled for local monitoring only. So, when you start GridGain node and run JConsole you will see the following (assuming local ndoe with default configuration):

For more information see "Monitoring and Management Using JMX

JBoss JMX Console

When running within JBoss you can use either JBoss Web Console or JBoss JMX Console that provide similar web-based access to JMX MBeans. When running JBoss locally open your browser and point it to either:

Powered by Atlassian Confluence, the Enterprise Wiki. (Version: 2.2.10 Build:#528 Nov 29, 2006) - Bug/feature request - Contact Administrators