Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory Leak with JSF's ViewScopeContextualStorage (MYFACES-4433) #20950

Closed
volosied opened this issue Apr 28, 2022 · 0 comments · Fixed by #20951
Closed

Memory Leak with JSF's ViewScopeContextualStorage (MYFACES-4433) #20950

volosied opened this issue Apr 28, 2022 · 0 comments · Fixed by #20951
Assignees
Labels
in:Web Components release bug This bug is present in a released version of Open Liberty release:22008 team:Sirius

Comments

@volosied
Copy link
Member

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:

  • OpenLiberty Version: Up and including 22.0.0.5
  • Affected feature(s) jsf-2.2, jsf-2.3, and faces-3.0
  • Java Version: N/A
  • server.xml configuration: N/A

Additional context
Open Source Issue: https://issues.apache.org/jira/browse/MYFACES-4433

@volosied volosied added in:Web Components release bug This bug is present in a released version of Open Liberty team:Sirius labels Apr 28, 2022
@volosied volosied self-assigned this Apr 28, 2022
@volosied volosied added this to General Issues in Web Tier Team via automation Apr 28, 2022
Web Tier Team automation moved this from General Issues to Completed Tasks Jun 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in:Web Components release bug This bug is present in a released version of Open Liberty release:22008 team:Sirius
Projects
Archived in project
Web Tier Team
  
Completed Tasks
Development

Successfully merging a pull request may close this issue.

2 participants