Details
-
Bug
-
Resolution: Done
-
Major - P3
-
2.12.0
-
None
-
Fully Compatible
Description
Quoting from Stefan's comment:
The problem is how BaseCluster.random is initialized to a ThreadLocal subclass instance. That class references the webapp's classloader. The ThreadLocal subclass in turn is referenced by each Thread instance (that's how ThreadLocals are implemented, they have a "helper-Map" in each Thread instance, so the leak is actually not a tiny Random instance but the whole webapp's classloader with a bunch of class definitions and statically referenced parts of the webapp