Hi, FreeMarker's ModelCache is using SoftReferences to handle entries. The only option is to add more RAM as "Virtual machine implementations are, however, encouraged to bias against clearing recently-created or recently-used soft references." or disable the cache.
https://docs.oracle.com/javase/7/docs/api/java/lang/ref/SoftReference.html http://stackoverflow.com/questions/299659/what-is-the-difference-between-a-soft-reference-and-a-weak-reference-in-java Regards -- Ćukasz + 48 606 323 122 http://www.lenart.org.pl/ 2016-07-12 12:21 GMT+02:00 sreekanth <sreekanth.n...@egovernments.org>: > I have tried with latest freemarker as well but the result is same. > > > > -- > View this message in context: > http://struts.1045723.n5.nabble.com/Freemarker-caching-of-BeanWrapper-models-causing-Memory-Leak-tp5719662p5719701.html > Sent from the Struts - Dev mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org > For additional commands, e-mail: dev-h...@struts.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@struts.apache.org For additional commands, e-mail: dev-h...@struts.apache.org