Announcement: You can find the guides for Commerce 7.5 and later on the new Elastic Path Documentation site. This Developer Center contains the guides for Commerce 6.13.0 through 7.4.1.Visit new site

This version of Elastic Path Commerce is no longer supported or maintained. To upgrade to the latest version, contact your Elastic Path representative.

Monitoring Ehcache

Monitoring Ehcache

Viewing the Ehcache JMX

  1. Start JConsole.
  2. Under the MBeans tab, expand the list named net.sf.ehcache.

Cache Statistics

CacheStatistics provide statistics of individual caches, which are useful for fine tuning your caches.

To enable JMX statistic logging for all caches:
  • In ehcache.xml, set statistics to true.
    <defaultCache
          ...
          statistics="true"
          />

Cache Management

You can preform these operations on the cache under CacheManager:

  • shutdown
  • getCache
  • clearAll