Java heap retention in ServletRequestContext objects referenced in sessions in JBoss EAP 7
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 7.2.5 - 7.2.9
- 7.3.0 - 7.3.2
Issue
- We see large amounts of heap usage under request objects referenced from sessions.
Resolution
- For EAP 7.3.x users, update to 7.3.3+
- For EAP 7.2.x users, update to 7.2.10 once it's available. Or downgrade to 7.2.4 as a workaround.
This issue has been reported as the following JIRAs:
- This content is not included.UNDERTOW-1722 - Memory leak involving request attributes
- WildFly (upstream): This content is not included.WFLY-13514
- EAP 7.2.z: This content is not included.JBEAP-19654 - Target release is 7.2.10
- EAP 7.3.z: This content is not included.JBEAP-19655 - Our QE team has verified in 7.3.4, so the fix version of JIRA is marked as 7.3.4. However, actually, the fix itself has been included in 7.3.3+.
Root Cause
- Memory usage from these references are increased after this fix to prevent clearing of request attributes: This content is not included.UNDERTOW-1573
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.