Solving Java heap retention in BodyContentImpl in JBoss EAP

Solution Verified - Updated -


  • org.apache.jasper.runtime.BodyContentImpl object is holding 47.85% of memory from heap dump.
  • Continuous full garbage collections causing the application to be unresponsive.
  • Having to recycle the site every 5 hours to avoid OutOfMemoryError.


  • Red Hat JBoss Enterprise Application Platform (EAP)
    • 7.x
    • 6.x
    • 5.x
    • 4.x

Subscriber exclusive content

A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.

Current Customers and Partners

Log in for full access

Log In