Large heap overhead in com.sun.faces.application.view.WriteBehindStateWriters
Environment
- JBoss Enterprise Application Platform (EAP)
- JSF
Issue
- We see an OOME with our JSF application. The heap dump shows a large amount of overhead in com.sun.faces.application.view.WriteBehindStateWriters.
Resolution
- Decrease
javax.faces.FACELETS_BUFFER_SIZE, decrease request traffic, or increase heap to account for the overhead of these buffers for your request load.
Root Cause
- These are buffers sized by the
javax.faces.FACELETS_BUFFER_SIZEparameter. You can expect one buffer allocated for each JSF request so this overhead scales with concurrent request load.
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.