Hibernate Cache Usage Monitoring Tool

Is there any tool that allows me to control the use of the Hibernate level 2 cache? I know that I can use the Hibernate API to get such information. But what if I have an application that does not read the information itself, and I cannot change it? Is there a way to read cache statistics from outside the application?

+2
source share
4 answers

Hibernate citation documentation :

3.4.6. Hibernation statistics

hibernate.generate_statisticsHibernate SessionFactory.getStatistics(). JMX. Javadoc org.hibernate.stats .

org.hibernate.stats .

JMX JMX.

.

+8

EhCache, MBean.

. " JMX" ehcache: http://ehcache.org/documentation/jmx.html

+3

There is a tool for monitoring the sleep cache that was opened through JMX. It is called hibernate-jconsole and can be downloaded here - http://hibernate-jcons.sourceforge.net/

+3
source

Source: https://habr.com/ru/post/1760532/


All Articles