Details
- 
    Improvement 
- 
    Resolution: Fixed
- 
    Major 
- 
    12.5.1
- 
    None
Description
According to https://vladmihalcea.com/hibernate-statistics-jmx/, we can enable hibernate JMX mbeans just by adding the following 2 properties in hibernate.cfg.xml:
<property name="hibernate.generate_statistics">true</property> <property name="hibernate.jmx.enabled">true</property>
Tried it myself and it works, producing the following information (displayed with glowroot):

