Memory Leak with JSF's ViewScopeContextualStorage (MYFACES-4433) #20950
Labels
in:Web Components
release bug
This bug is present in a released version of Open Liberty
release:22008
team:Sirius
Projects
Describe the bug
There is a small memory leak in the JSF features. CDI ViewScoped beans are stored within the ViewScopeContextualStorage object, and these beans are removed at the end of their lifecycle. Each new view creates another ViewScopeContextualStorage to store the beans. However, each ViewScopeContextualStorage is not deleted after the view changes. Instead, it's only deleted at session expiration.
Note that this leak is very small, but may still had up over time until the session expires.
Steps to Reproduce
Applications uses CDI ViewScoped beans
Expected behavior
No memory leak should occur. ViewScopeContextualStorage should be removed entirely after the beans it holds are destroyed.
Diagnostic information:
Additional context
Open Source Issue: https://issues.apache.org/jira/browse/MYFACES-4433
The text was updated successfully, but these errors were encountered: