Uploaded image for project: 'WildFly'
  1. WildFly
  2. WFLY-20799 Loading Prometheus Metrics takes up to 5 Minutes due to org.jboss.as.jpa.hibernate.management.QueryName
  3. WFLY-20960

Default to a lower hibernate.statistics.query_max_size value of 200 unless application overrides it

XMLWordPrintable

    • Icon: Sub-task Sub-task
    • Resolution: Unresolved
    • Icon: Major Major
    • 39.0.0.Beta1
    • None
    • JPA / Hibernate
    • None
    • ---
    • ---

      hibernate.statistics.query_max_size defaults the maximum number of queries to 5000 unless an application specifies a persistence unit hint property for "hibernate.statistics.query_max_size". This is to default WildFly to a lower max number of queries unless applications specify a different value in their persistence unit definition. The WildFly configured default will be 200 which is neither a large or small limit on the number of queries.

      Applications can configure a different max queries setting if desired:

       <persistence-unit name="example_PU">
          ...
          <properties>
              <property name="hibernate.statistics.query_max_size" value="500" />
          </properties>
        </persistence-unit>
      

              smarlow1@redhat.com Scott Marlow
              smarlow1@redhat.com Scott Marlow
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Created:
                Updated: