You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Bauke Scholtz (Jira)" <de...@myfaces.apache.org> on 2026/05/29 17:01:00 UTC
[jira] [Commented] (MYFACES-4751) @ViewScoped beans of a view without saved state (e.g. no UIForm) are never destroyed and leak until session expiry
[ https://issues.apache.org/jira/browse/MYFACES-4751?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=18084416#comment-18084416 ]
Bauke Scholtz commented on MYFACES-4751:
----------------------------------------
https://github.com/apache/myfaces/pull/995
> @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
> Priority: Major
>
> 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)