[hibernate-dev] Exposing Hibernate statistics via JMX

Gunnar Morling gunnar at hibernate.org
Thu Jul 31 08:02:29 EDT 2014


Steve, all,

I've been asked about the Hibernate statistics functionality which used to
be accessible via JMX.

There used to be StatisticsService which was an MBean and which one could
register with the JMX platform. This has been removed a while ago, and
there is the related issue HHH-6190 which still is open.

Until this is resolved, what is the recommended strategy towards making the
statistics available via JMX? Should users create and export their own
MBean based on SessionFactory#getStatistics()? Or is there any other
replacement for StatisticsService?

Thanks,

--Gunnar

[1] https://hibernate.atlassian.net/browse/HHH-6190


More information about the hibernate-dev mailing list