JBoss - Java heap retention in io.undertow.servlet.util.SavedRequest

Solution Verified - Updated

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-size setting of your Undertow listeners.

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.