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-2015 Software AG, Darmstadt, Germany.

Product Logo |   Feedback