Ehcache 2.10.5 | Related Documentation | Integrations | Using Ehcache with Hibernate | Viewing Hibernate Statistics
 
Viewing Hibernate Statistics
It is possible to access the Hibernate statistics and Ehcache statistics using the Java Management Extensions (JMX).
The EhcacheHibernateMBean is the main interface that exposes all the APIs via JMX. It basically extends two interfaces: EhcacheStats and HibernateStats. As the names imply, EhcacheStats contains methods related with Ehcache and HibernateStats contains methods related with Hibernate.
Using these APIs, you can see cache hit/miss/put rates, change config element values (e.g., maxElementInMemory, TTL TTI), enable/disable statistics collection, and various other things. For details, see the specific interface.
For additional information about using JMX to monitor and manage your caches, see the Ehcache Operations Guide.

Copyright © 2010-2018 | 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.
Innovation Release