Possible memory leak in Tomcat
Brought to you by:
aalmiray
Using version 2.4-jdk5 on Tomcat 6.0.28 yields the following in the log files:
The web application [...] created a ThreadLocal with key of type [net.sf.json.AbstractJSON.CycleSet] (value [net.sf.json.AbstractJSON$CycleSet@26960369]) and a value of type [java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference@42b9f649]) but failed to remove it when the web application was stopped. This is very likely to create a memory leak.
View and moderate all "bugs Discussion" comments posted by this user
Mark all as spam, and block user from posting to "Bugs"
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