JBoss - Java heap retention in io.undertow.servlet.util.SavedRequest
Environment
- JBoss Enterprise Application Platform (EAP)
- 7.x
- 8.x
Issue
- We reach an OutOfMemoryError with excessive overhead shown in io.undertow.servlet.util.SavedRequest objects and its allocated buffer with mostly empty space.
Resolution
- Decrease the
max-buffered-request-sizesetting of your Undertow listeners.
Root Cause
io.undertow.servlet.util.SavedRequesteagerly allocates its buffer to the full configured amount, allowing for unneeded excessive overhead with large configuredmax-buffered-request-sizes- This content is not included.UNDERTOW-2289
- This content is not included.JBEAP-31470
SBR
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.