WAR == single classloader was: Benefits of activeReferenceQueue (original) (raw)

Florian Weimer fweimer at redhat.com
Tue Jul 29 12:13:25 UTC 2014


On 07/29/2014 10:05 AM, Jaroslav Tulach wrote:

Plus, because there is a single classloader which loads all the classes from a WAR, by keeping the activerReferenceQueue thread alive and holding reference to the queue, we hold reference to its class and the classloader and thus all classes referenced by it.

And this memory leak accumulates with every re-deploy.

Could you interrupt the thread when URLClassLoader#close() is called?

-- Florian Weimer / Red Hat Product Security



More information about the core-libs-dev mailing list