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

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 12.5.1
    • Fix Version/s: 12.6
    • Component/s: Old Core
    • Labels:
      None
    • Difficulty:
      Unknown
    • Similar issues:

      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

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

              Dates

              Created:
              Updated:
              Resolved:
              Date of First Response: