Re: Memory leak?
Marc Schipperheyn <[email protected]> Sat, 16 Nov 2013 20:26:53 -0200
| Newsgroups | gmane.comp.web.freemarker.devel |
|---|---|
| Message-ID | <CAGvEgx6SNLRWNPruyOg=jC6SeH9sH6P542om7zdudZ_Bd9EE9Q@mail.gmail.com> |
Hi Daniel, I have attached a screenshot. It's held alive by a quartz scheduled worker thread [image: Inline image 2]through the classloader..[image: Inline image 1] Vriendelijke groet, Marc M.Schipperheyn <http://www.buscafreela.com.br> MSW BV | Nova Zemblastraat 12-a, 1013 RK, Amsterdam | KvK: 02090184 skype: mschipperheyn | Twitter: mschipperheyn Netherlands: m: +31 (0)6 218 03 003 | t: +31 (0)84 88 453 99 Brazil: m: +55 (0)11 99 44 6 3472 On Sat, Nov 16, 2013 at 8:14 PM, Daniel Dekany <[email protected]> wrote: > As the Environment refers to the data-model (template context), it can > indirectly hold reference to pretty much anything. Why's the > TemplateException kept alive though? > > -- > Thanks, > Daniel Dekany > > > Saturday, November 16, 2013, 9:23:40 PM, Marc Schipperheyn wrote: > > > Hi, > > > > I'm doing some memory leak analysis on our system that uses Spring, > > Hibernate, Hibernate Search and Freemarker. > > > > In one of our heapdumps, freemarker.core.InvalidReferenceException > > popped up as participating in a Leak Suspect. > > Looking at the way TemplateExceptions are handled and the > > Environment that is stored in them, I am wondering if this isn't a > > potential cause for memory leaks. Does the Environment reference the > > surrounding Environment, in my case Spring? > > > > I'm not sure about this, but I thought it would be interesting > > to bring it up. > > > > Marc > > ------------------------------------------------------------------------------ DreamFactory - Open Source REST & JSON Services for HTML5 & Native Apps OAuth, Users, Roles, SQL, NoSQL, BLOB Storage and External API Access Free app hosting. Or install the open source package on any LAMP server. Sign up and see examples for AngularJS, jQuery, Sencha Touch and Native! http://pubads.g.doubleclick.net/gampad/clk?id=63469471&iu=/4140/ostg.clktrk _______________________________________________ FreeMarker-devel mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/freemarker-devel
Screen Shot 2013-11-16 at 20.25.51 .png
(image/png, 487.1 KB) - not displayed
Screen Shot 2013-11-16 at 20.21.59 .png
(image/png, 146.3 KB) - not displayed