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-Velocity
> > > > -T
> > > > emplat
> > > > e-t5193.html
> > > > [2] -
> > > > http://www.nabble.com/Re:-OutOfMemoryException-Processing-Velocity-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]

Reply via email to