Skip to content

DummyInvocationUtils's ThreadLocal cache causes classloader leak #1820

@ajmurphy520

Description

@ajmurphy520

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.

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions