metro-jax-ws icon indicating copy to clipboard operation
metro-jax-ws copied to clipboard

Memory leak on ThreadLocalContainerResolver

Open Tomas-Kraus opened this issue 3 years ago • 0 comments

On com.sun.xml.ws.client.dispatch.DispatchImpl.invoke(T), an invocation to containers.get on thread local variable is done but there is no invocation to the remove method to detach the thread local variable from the current thread. I think that the remove should be called inside the com.sun.xml.ws.api.server.ThreadLocalContainerResolver.exitContainer(Container) method instead of using the set. I attach a screenshot where with MAT you can see the leak (we have already undeployed and removed the application from WLS12c)

Environment

Tomacat 7.0.50, Weblogic 12.1.2

Affected Versions

[2.2.7, 2.2.8]

Source: https://github.com/javaee/metro-jax-ws/issues/1145 Author: glassfishrobot

Tomas-Kraus avatar Jun 02 '22 17:06 Tomas-Kraus