Ehcache 2.10.7 | Product Documentation | Ehcache Operations Guide | Monitoring and Management Using JMX | JConsole Example
 
JConsole Example
This example shows how to register CacheStatistics in the JDK platform MBeanServer, which works with the JConsole management agent.
CacheManager manager = new CacheManager();
MBeanServer mBeanServer = ManagementFactory.getPlatformMBeanServer();
ManagementService.registerMBeans(manager, mBeanServer, false, false, false,
true);
CacheStatistics MBeans are then registered. The following shows CacheStatistics MBeans in JConsole.

Copyright © 2010-2019 | Software AG, Darmstadt, Germany and/or Software AG USA, Inc., Reston, VA, USA, and/or its subsidiaries and/or its affiliates and/or their licensors.