[
https://issues.apache.org/jira/browse/MYFACES-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18084442#comment-18084442
]
Melloware commented on MYFACES-4751:
------------------------------------
Backported to 4.0 and 5.0 branches! Thanks [~balusc]
> @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
> Assignee: Melloware
> Priority: Major
> Fix For: 5.0.0, 4.0.4, 4.1.4
>
>
> 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)