12.4. Accessing Cache MBeans in a Standalone Environment
JBoss Cache MBeans are readily accessed when running cache instances in an application server that provides an MBean server interface such as JBoss JMX Console. Refer to server documentation for instructions on how to access MBeans running in a server's MBean container.
JBoss Cache MBeans are also accessible when running in a non-server environment if the JVM is JDK 5.0 or later. When running a standalone cache in a JDK 5 environment, you can access the cache's MBeans as follows.
Set the system property -Dcom.sun.management.jmxremote when starting the JVM where the cache will run.
Once the JVM is running, start the JDK 5 jconsole utility, located in the JDK's /bin directory.
When the utility loads, you will be able to select your JVM and connect to it. The JBoss Cache MBeans will be available on the MBeans panel.
Note: The jconsole utility will automatically register as a listener for cache notifications when connected to a JVM running JBoss Cache instances.
The following figure shows cache interceptor MBeans in jconsole. Cache statistics are displayed for the CacheMgmt interceptor: