You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by e v a n <ev...@mindreef.com> on 2006/02/03 22:52:43 UTC

RE: OutOfMemoryException Processing Velocity Template

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




---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: OutOfMemoryException Processing Velocity Template

Posted by Malcolm Edgar <ma...@gmail.com>.
Yes my experience with the singleton memory "leak" was with Tomcat,
when it was auto reloading the application when class files changed.

regards Malcolm Edgar

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: OutOfMemoryException Processing Velocity Template

Posted by Will Glass-Husain <wg...@forio.com>.
I have this issue with Tomcat JSP apps as well as Velocity.  So it is a 
Tomcat issue.  I
think it holds on to static references in the classloader.  Tomcat's great 
in general but the deployment I find is really not robust.

WILL

----- Original Message ----- 
From: "Barbara Baughman" <ba...@utdallas.edu>
To: "Velocity Users List" <ve...@jakarta.apache.org>
Sent: Tuesday, February 07, 2006 1:33 PM
Subject: RE: OutOfMemoryException Processing Velocity Template


> 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:malcolm.edgar@gmail.com]
>> 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 <nb...@gmail.com> 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 <ev...@mindreef.com> 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:nbubna@gmail.com]
>> > > 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 <ev...@mindreef.com> 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:malcolm.edgar@gmail.com]
>> > > > 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 <ev...@mindreef.com> 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:
>> > > > > velocity-user-unsubscribe@jakarta.apache.org
>> > > > > For additional commands, e-mail:
>> > > > > velocity-user-help@jakarta.apache.org
>> > > > >
>> > > > >
>> > > >
>> > > > ------------------------------------------------------------------
>> > > > --- To unsubscribe, e-mail:
>> > > > velocity-user-unsubscribe@jakarta.apache.org
>> > > > For additional commands, e-mail:
>> > > > velocity-user-help@jakarta.apache.org
>> > > >
>> > > >
>> > > >
>> > > > ------------------------------------------------------------------
>> > > > --- To unsubscribe, e-mail:
>> > > > velocity-user-unsubscribe@jakarta.apache.org
>> > > > For additional commands, e-mail:
>> > > > velocity-user-help@jakarta.apache.org
>> > > >
>> > > >
>> > >
>> > > --------------------------------------------------------------------
>> > > - To unsubscribe, e-mail:
>> > > velocity-user-unsubscribe@jakarta.apache.org
>> > > For additional commands, e-mail:
>> > > velocity-user-help@jakarta.apache.org
>> > >
>> > >
>> > >
>> > > --------------------------------------------------------------------
>> > > - To unsubscribe, e-mail:
>> > > velocity-user-unsubscribe@jakarta.apache.org
>> > > For additional commands, e-mail:
>> > > velocity-user-help@jakarta.apache.org
>> > >
>> > >
>> >
>> > ---------------------------------------------------------------------
>> > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>> > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>> >
>> >
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>>
>>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


RE: OutOfMemoryException Processing Velocity Template

Posted by Barbara Baughman <ba...@utdallas.edu>.
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:malcolm.edgar@gmail.com]
> 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 <nb...@gmail.com> 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 <ev...@mindreef.com> 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:nbubna@gmail.com]
> > > 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 <ev...@mindreef.com> 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:malcolm.edgar@gmail.com]
> > > > 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 <ev...@mindreef.com> 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:
> > > > > velocity-user-unsubscribe@jakarta.apache.org
> > > > > For additional commands, e-mail:
> > > > > velocity-user-help@jakarta.apache.org
> > > > >
> > > > >
> > > >
> > > > ------------------------------------------------------------------
> > > > --- To unsubscribe, e-mail:
> > > > velocity-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > > > velocity-user-help@jakarta.apache.org
> > > >
> > > >
> > > >
> > > > ------------------------------------------------------------------
> > > > --- To unsubscribe, e-mail:
> > > > velocity-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > > > velocity-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > > --------------------------------------------------------------------
> > > - To unsubscribe, e-mail:
> > > velocity-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > velocity-user-help@jakarta.apache.org
> > >
> > >
> > >
> > > --------------------------------------------------------------------
> > > - To unsubscribe, e-mail:
> > > velocity-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > velocity-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


RE: OutOfMemoryException Processing Velocity Template

Posted by e v a n <ev...@mindreef.com>.
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:malcolm.edgar@gmail.com] 
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 <nb...@gmail.com> 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 <ev...@mindreef.com> 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:nbubna@gmail.com]
> > 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 <ev...@mindreef.com> 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:malcolm.edgar@gmail.com]
> > > 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 <ev...@mindreef.com> 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:
> > > > velocity-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > > > velocity-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > > ------------------------------------------------------------------
> > > --- To unsubscribe, e-mail: 
> > > velocity-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: 
> > > velocity-user-help@jakarta.apache.org
> > >
> > >
> > >
> > > ------------------------------------------------------------------
> > > --- To unsubscribe, e-mail: 
> > > velocity-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: 
> > > velocity-user-help@jakarta.apache.org
> > >
> > >
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: 
> > velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: 
> > velocity-user-help@jakarta.apache.org
> >
> >
> >
> > --------------------------------------------------------------------
> > - To unsubscribe, e-mail: 
> > velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: 
> > velocity-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: OutOfMemoryException Processing Velocity Template

Posted by Malcolm Edgar <ma...@gmail.com>.
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 <nb...@gmail.com> 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 <ev...@mindreef.com> 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:nbubna@gmail.com]
> > 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 <ev...@mindreef.com> 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:malcolm.edgar@gmail.com]
> > > 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 <ev...@mindreef.com> 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:
> > > > velocity-user-unsubscribe@jakarta.apache.org
> > > > For additional commands, e-mail:
> > > > velocity-user-help@jakarta.apache.org
> > > >
> > > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> > >
> > >
> > >
> > > ---------------------------------------------------------------------
> > > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: OutOfMemoryException Processing Velocity Template

Posted by Nathan Bubna <nb...@gmail.com>.
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 <ev...@mindreef.com> 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:nbubna@gmail.com]
> 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 <ev...@mindreef.com> 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:malcolm.edgar@gmail.com]
> > 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 <ev...@mindreef.com> 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:
> > > velocity-user-unsubscribe@jakarta.apache.org
> > > For additional commands, e-mail:
> > > velocity-user-help@jakarta.apache.org
> > >
> > >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


RE: OutOfMemoryException Processing Velocity Template

Posted by e v a n <ev...@mindreef.com>.
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:nbubna@gmail.com] 
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 <ev...@mindreef.com> 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:malcolm.edgar@gmail.com]
> 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 <ev...@mindreef.com> 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: 
> > velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: 
> > velocity-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: OutOfMemoryException Processing Velocity Template

Posted by Nathan Bubna <nb...@gmail.com>.
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 <ev...@mindreef.com> 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:malcolm.edgar@gmail.com]
> 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 <ev...@mindreef.com> 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-Tem
> > plate-
> > p23480.html
> >
> >
> >
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> > For additional commands, e-mail: velocity-user-help@jakarta.apache.org
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


RE: OutOfMemoryException Processing Velocity Template

Posted by e v a n <ev...@mindreef.com>.
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:malcolm.edgar@gmail.com] 
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 <ev...@mindreef.com> 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-Tem
> plate-
> p23480.html
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org


Re: OutOfMemoryException Processing Velocity Template

Posted by Malcolm Edgar <ma...@gmail.com>.
Are you using Velocity singleton pattern or VelocityEngine?

regards Malcolm Edgar

On 2/4/06, e v a n <ev...@mindreef.com> 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-Templat
> e-t5193.html
> [2] -
> http://www.nabble.com/Re:-OutOfMemoryException-Processing-Velocity-Template-
> p23480.html
>
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org