-
Notifications
You must be signed in to change notification settings - Fork 113
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
Static variables in ELUtils cause memory leaks and leaks of resolver cache between applications #5461
Milestone
Comments
OndroMih
added a commit
to OmniFish-EE/mojarra
that referenced
this issue
Jul 26, 2024
…es (eclipse-ee4j#5461) This avoids sharing resolvers between multiple applications on the classpath and also avoids memory leaks in application servers after an application and its classloaders are undeploed.
OndroMih
added a commit
to OmniFish-EE/mojarra
that referenced
this issue
Jul 26, 2024
…es (eclipse-ee4j#5461) This avoids sharing resolvers between multiple applications on the classpath and also avoids memory leaks in application servers after an application and its classloaders are undeploed.
A fix for the 4.1 version is here: #5462 I cannot build the current master branch. I assume it's not buildable because it depends on a new snapshot Faces version. So I didn't raise the PR for the master branch. |
OndroMih
added a commit
to OmniFish-EE/mojarra
that referenced
this issue
Aug 4, 2024
…es (eclipse-ee4j#5461) This avoids sharing resolvers between multiple applications on the classpath and also avoids memory leaks in application servers after an application and its classloaders are undeployed.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
When Mojarra is used in an application server, its classes are loaded by the app server's classloader and are shared by all deployed applications. This can lead to at least to serious issues:
To Reproduce
The memory leak can be reproduced as discussed in jakartaee/expression-language#214
Expected behavior
Each application that is deployed on an application server uses its own set of resolvers. Doesn't share them with other applications.
The text was updated successfully, but these errors were encountered: