You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@velocity.apache.org by Hans Prueller <ha...@gmx.net> on 2004/01/21 17:18:08 UTC

Velocity memory usage (extreme)

hi there,

I am using velocity for some months and it is my favourite tool working with
web applications.

now i have a problem merging a template with a collection contained in a
context,
the collection contains about 150 objects - not that big. if i call
template.merge()
the used memory increases about 48megs !!!! 

has anybody a tip what could be the problem?

hans
Ikarus GuardNT hat dieses eMail auf Viren und Trojaner untersucht.
Nichts Verdachtiges gefunden.

keine Anlagen gefunden
-------------------------------------------------------



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


AW: Velocity memory usage (extreme)

Posted by Hans Prueller <ha...@gmx.net>.
the applications runs under j2sdk 1.4.2_03 no a win2000 server machine (all
servicepacks)

I am rendering about 150 velocity-data objects which is a self-written class
consisting
of hashmaps containing attributes, values and meta-data for rendering. 

the increase of 48M memory usage is the difference between
Runtime.freememory() and 
Runtime.usedmemory() - abuot 48 000 000 as number ( i guess ist 48 megabytes
) 

hans

-----Ursprüngliche Nachricht-----
Von: Geir Magnusson Jr [mailto:geir@4quarters.com] 
Gesendet: Mittwoch, 21. Jänner 2004 18:15
An: Velocity Users List
Betreff: Re: Velocity memory usage (extreme)



On Jan 21, 2004, at 11:18 AM, Hans Prueller wrote:

> hi there,
>
> I am using velocity for some months and it is my favourite tool
> working with
> web applications.
>
> now i have a problem merging a template with a collection contained in
> a
> context,
> the collection contains about 150 objects - not that big. if i call
> template.merge()
> the used memory increases about 48megs !!!!

Velocity will be doing a bit of work when you render, caching 
information about the objects when you merged the template.  What OS 
and what number are you reporting as 48M, and in what environment?

>
> has anybody a tip what could be the problem?
>
> hans
> Ikarus GuardNT hat dieses eMail auf Viren und Trojaner untersucht. 
> Nichts Verdachtiges gefunden.
>
> keine Anlagen gefunden
> -------------------------------------------------------
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
-- 
Geir Magnusson Jr                                   203-247-1713(m)
geir@4quarters.com


---------------------------------------------------------------------
To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: velocity-user-help@jakarta.apache.org
Ikarus GuardNT hat dieses eMail auf Viren und Trojaner untersucht. Nichts
Verdächtiges gefunden.

keine Anlagen gefunden
-------------------------------------------------------

Ikarus GuardNT hat dieses eMail auf Viren und Trojaner untersucht.
Nichts Verdächtiges gefunden.

keine Anlagen gefunden
-------------------------------------------------------



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


Re: Velocity memory usage (extreme)

Posted by Geir Magnusson Jr <ge...@4quarters.com>.
On Jan 21, 2004, at 11:18 AM, Hans Prueller wrote:

> hi there,
>
> I am using velocity for some months and it is my favourite tool 
> working with
> web applications.
>
> now i have a problem merging a template with a collection contained in 
> a
> context,
> the collection contains about 150 objects - not that big. if i call
> template.merge()
> the used memory increases about 48megs !!!!

Velocity will be doing a bit of work when you render, caching 
information about the objects when you merged the template.  What OS 
and what number are you reporting as 48M, and in what environment?

>
> has anybody a tip what could be the problem?
>
> hans
> Ikarus GuardNT hat dieses eMail auf Viren und Trojaner untersucht.
> Nichts Verdachtiges gefunden.
>
> keine Anlagen gefunden
> -------------------------------------------------------
>
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: velocity-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: velocity-user-help@jakarta.apache.org
>
>
-- 
Geir Magnusson Jr                                   203-247-1713(m)
geir@4quarters.com


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