Skip to content

DummyInvocationUtils's ThreadLocal cache causes classloader leak #1820

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

Closed
ajmurphy520 opened this issue Jul 29, 2022 · 0 comments
Closed

DummyInvocationUtils's ThreadLocal cache causes classloader leak #1820

ajmurphy520 opened this issue Jul 29, 2022 · 0 comments
Assignees
Labels
in: core Core parts of the project type: bug
Milestone

Comments

@ajmurphy520
Copy link

If application is deployed to a standalone servlet container the the DummyInvocationUtils cache will cause a classloader leak. This is caused by the Cache being a ThreadLocal which results in the threads created by the container maintaining a reference to the cache and therefore the classloader. On a redeploy or restart of the application within the container those threads will remain which keeps the classlaoder from the previous instance alive.

To prevent classloader leaks, thread locals must be cleared at the end of the request.

@odrotbohm odrotbohm self-assigned this Sep 14, 2022
@odrotbohm odrotbohm changed the title DummyInvocationUtils ThreadLocal cache causes classloader leak DummyInvocationUtils's ThreadLocal cache causes classloader leak Sep 14, 2022
@odrotbohm odrotbohm added type: bug in: core Core parts of the project labels Sep 14, 2022
@odrotbohm odrotbohm added this to the 1.5.2 milestone Sep 14, 2022
odrotbohm added a commit that referenced this issue Sep 14, 2022

Verified

This commit was signed with the committer’s verified signature.
cfvescovo Carlo Federico Vescovo
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in: core Core parts of the project type: bug
Projects
None yet
Development

No branches or pull requests

2 participants