OutOfMemoryError from tags leaked in WebInjectionContainer after exception

Solution Verified - Updated

Environment

  • JBoss Enterprise Application Platform (EAP)
    • 6.x
    • 7.x
    • 8.x
  • JBoss Web Server (JWS) 3.x
    • Tomcat
      • 7.0.x
      • 8.0.x

Issue

  • We have some tags that throw exceptions and they are not released from heap after exceptions. They accumulate in the WebInjectionContainer's instanceMap.

Resolution

  • Address any recurring exceptions in any tags to mitigate leaks
  • Or update to EAP 7.4.19+ or 8.0.5+ for a resolution
  • For Tomcat, upgrade to JWS 5+ / Tomcat 9.0+

Root Cause

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.