Uploaded image for project: 'XWiki Platform'
  1. XWiki Platform
  2. XWIKI-17516

Enable Hibernate JMX mbeans by default for runtime monitoring of hibernate sessions and queries

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Major
    • 12.6
    • 12.5.1
    • Old Core
    • None
    • Unknown

    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):

      Attachments

        Activity

          People

            vmassol Vincent Massol
            enygma Eduard Moraru
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: