High heap in org.hibernate.stat.ConcurrentStatisticsImpl

Solution Verified - Updated

Environment

  • JBoss Enterprise Application Platform (EAP) 6.x
  • Hibernate

Issue

  • We see an OutOfMemoryError and much of the heap is consumed by an org.hibernate.stat.ConcurrentStatisticsImpl in a org.hibernate.impl.SessionFactoryImpl

Resolution

  • Ensure hibernate.generate_statistics is set to false

Root Cause

  • Hibernate statistics are enabled
Components
Category

This solution is part of Red Hat’s fast-track publication program, providing a huge library of solutions that Red Hat engineers have created while supporting our customers. To give you the knowledge you need the instant it becomes available, these articles may be presented in a raw and unedited form.