This memory leak was confirmed, at least in 2.2.2 in Jboss 4/Tomcat. A similar ThreadLocal object used. In a multi-user environment (Jboss/Tomcat) , this will cause on HashSet to be created by user. As threads are resused, the HashSet are never flushed causing OOM errors.

 
Last edit: Anonymous 2015-12-02