And here all the time I thought it was a Tomcat issue with reloading. All of my web applications use the VelocityEngine rather than the singleton, and I notice that Tomcat throws an OutOfMemoryException after a lot of reloads.
Is there something I should be during in the HttpServlet destroy method to clear out the VelocityEngine? Barbara Baughman X2157 On Tue, 7 Feb 2006, e v a n wrote: > > Hmm. I wasn't aware of the leak issue, I'll make a note of that. > > As for other work arounds, I have one that will work just fine for my > situation. But I'm still curious about the specialized tiles tool for the > purpose of streaming output to the browser, instead of buffering the whole > page in a string before sending it as the tiles tool does. But that's > another question, and probably for the tiles developers. > > Thank you for your help. > > -Evan > > > -----Original Message----- > From: Malcolm Edgar [mailto:[EMAIL PROTECTED] > Sent: Monday, February 06, 2006 8:35 PM > To: Velocity Users List > Subject: Re: OutOfMemoryException Processing Velocity Template > > If your are reloading your application a lot, i.e. doing development work, > the singleton pattern causes a memory leak. This could be expressed in OOME > when rendering templates. > > regards Malcolm Edgar > > On 2/7/06, Nathan Bubna <[EMAIL PROTECTED]> wrote: > > i'm not sure. Edgar? > > > > as for your question about a specialized TilesTool... i'm not aware > > of this having been done. if it has, it wasn't shared with the list. > > > > have you taken the other advice in the thread and profiled your > > application? if you aren't up for writing a specialized TilesTool, > > then there may be other ways you can cut down on your memory use. > > > > On 2/6/06, e v a n <[EMAIL PROTECTED]> wrote: > > > > > > Yes it looks like we still are using v1.1 in out project. How does > > > this affect the rendering of large HTML files and getting OOMEs when > doing so? > > > > > > Evan > > > > > > > > > -----Original Message----- > > > From: Nathan Bubna [mailto:[EMAIL PROTECTED] > > > Sent: Monday, February 06, 2006 1:11 PM > > > To: Velocity Users List > > > Subject: Re: OutOfMemoryException Processing Velocity Template > > > > > > that depends on which version of VelocityTools you are using. in > > > 1.2, we rewrote things to use a VelocityEngine instead of the > > > singleton, which was causing problems for us. > > > > > > On 2/6/06, e v a n <[EMAIL PROTECTED]> wrote: > > > > > > > > I believe that I'm using the singletone pattern. I using the > > > > VelocityViewServlet to startup velocity, and I believe its written > > > > to use the runtime singleton by calling Velocity.init(). > > > > Is that correct? > > > > > > > > -Evan > > > > > > > > > > > > > > > > > > > > > > > > -----Original Message----- > > > > From: Malcolm Edgar [mailto:[EMAIL PROTECTED] > > > > Sent: Saturday, February 04, 2006 4:35 PM > > > > To: Velocity Users List > > > > Subject: Re: OutOfMemoryException Processing Velocity Template > > > > > > > > Are you using Velocity singleton pattern or VelocityEngine? > > > > > > > > regards Malcolm Edgar > > > > > > > > On 2/4/06, e v a n <[EMAIL PROTECTED]> wrote: > > > > > > > > > > Hello, > > > > > > > > > > I just picked up on this thread[1] from 5-10-2005 today because > > > > > I'm running into a similar issue trying to render a large HTML > > > > > page via velocity that's included via Tiles. In this post [2] > > > > > in the thread, there is talk of making a specialized TilesTool > > > > > for cases where large html files need to be written out with > > > > > Velocity. To anyone's knowledge, has anyone come up with such a > patch? > > > > > > > > > > Thank You, > > > > > Evan Leonard > > > > > > > > > > > > > > > [1] - > > > > > http://www.nabble.com/RE%3A-OutOfMemoryException-Processing-Velo > > > > > city > > > > > -T > > > > > emplat > > > > > e-t5193.html > > > > > [2] - > > > > > http://www.nabble.com/Re:-OutOfMemoryException-Processing-Veloci > > > > > ty-T > > > > > em > > > > > plate- > > > > > p23480.html > > > > > > > > > > > > > > > > > > > > > > > > > ---------------------------------------------------------------- > > > > > ---- > > > > > - To unsubscribe, e-mail: > > > > > [EMAIL PROTECTED] > > > > > For additional commands, e-mail: > > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > > > ------------------------------------------------------------------ > > > > --- To unsubscribe, e-mail: > > > > [EMAIL PROTECTED] > > > > For additional commands, e-mail: > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > > > ------------------------------------------------------------------ > > > > --- To unsubscribe, e-mail: > > > > [EMAIL PROTECTED] > > > > For additional commands, e-mail: > > > > [EMAIL PROTECTED] > > > > > > > > > > > > > > -------------------------------------------------------------------- > > > - To unsubscribe, e-mail: > > > [EMAIL PROTECTED] > > > For additional commands, e-mail: > > > [EMAIL PROTECTED] > > > > > > > > > > > > -------------------------------------------------------------------- > > > - To unsubscribe, e-mail: > > > [EMAIL PROTECTED] > > > For additional commands, e-mail: > > > [EMAIL PROTECTED] > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]