Bauke Scholtz created MYFACES-4751:
--------------------------------------

             Summary: @ViewScoped beans of a view without saved state (e.g. no 
UIForm) are never destroyed and leak until session expiry
                 Key: MYFACES-4751
                 URL: https://issues.apache.org/jira/browse/MYFACES-4751
             Project: MyFaces Core
          Issue Type: Bug
    Affects Versions: 4.1.3
            Reporter: Bauke Scholtz


Discovered in 
https://github.com/eclipse-ee4j/mojarra/issues/5753#issuecomment-4577107030

Reproducer:
- @ViewScoped bean with "big data"
- Facelet page WITHOUT h:form
- Refresh 1000+ times

Problem:
- Heap pushes easily past 2GB --> all previous @ViewScoped beans still there

Solution:
- Clear viewMap by end of render

PR coming at GitHub.



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to