You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@velocity.apache.org by Marta Gascó Julio <mg...@care-t.com> on 2008/04/15 16:22:27 UTC
Out of memory when calling macros from other macros
I have a template using a large number of macros (35). The macros in this template are calling ones to others in different order and several times, depending on the code I want to obtain.
My problem is about memory. It seems that when a certain number of calls among macros is done an out of memory error appears.
Do any of you know if there are any limit to the number of macros that can be called from a template?
Thanks in advance.
Marta.
Re: Out of memory when calling macros from other macros
Posted by Christopher Schultz <ch...@christopherschultz.net>.
Marta,
Marta Gascó Julio wrote:
> I have a template using a large number of macros (35). The macros in
> this template are calling ones to others in different order and
> several times, depending on the code I want to obtain.
>
> My problem is about memory. It seems that when a certain number of
> calls among macros is done an out of memory error appears.
>
> Do any of you know if there are any limit to the number of macros
> that can be called from a template?
Could you provide an example of the template code you are using? It
doesn't necessarily have to reproduce an OOME (because those are very
sensitive to lots of conditions), but at least we could see the types of
nesting, etc. you are attempting.
If you are lucky enough to get a stack trace with your OOME, could you
post it?
Thanks,
-chris