cocoon-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Perez Carmona, David" <DPerez...@fcc.es>
Subject RE: Memory leaks in Cocoon?
Date Wed, 18 Aug 2004 09:59:40 GMT

Thanx Alex and Antonio,

The memory consumption restores somewhat when I issue a garbage collection (Runtime.getRuntime().gc()),
but still losing memory with this test pipeline:

	- A file generator reading a big file (10 Mb)
	- A simple XSLT transform using Xalan
	- An text serializer.

Here is the used memory pattern:

Initial:                19 Mb
After test pipeline:   110 Mb
After gc:               45 Mb
After test pipeline:   110 Mb
After gc:               45 Mb
After test pipeline:   132 Mb
After gc:               69 Mb
After test pipeline:   157 Mb
After gc:               94 Mb
After test pipeline:   178 Mb
After gc:              118 Mb

After a few more tests, the test pipeline stops working, an OutOfMemoryError happens.

Maximum memory that Java can use: 198 Mb

I use the non-caching pipeline.

> -----Mensaje original-----
> De: Antonio Gallardo [mailto:agallardo@agssa.net]
> Enviado el: miƩrcoles, 18 de agosto de 2004 11:22
> Para: users@cocoon.apache.org
> Asunto: Re: Memory leaks in Cocoon?
>
>
>
> Alexandre Victoor dijo:
> > Hello
> > I have observed the same think. Without any XSL
> transformation, cocoon
> > consume about 300Kb per request.But that does not mean at
> all that there
> > is
> > a memory leak. When the garbage collector performs a full
> gc, all the
> > memory is freed. I have done lots of stress tests, I have
> not seen any
> > leaks.
>
> Yep. Please remember that the component pools (generator,
> transformers,
> etc.) and the cache is working. That consume memory. After
> cocoon starts
> cache start to fill up and the component pool start to grow. They will
> live (read use memory) based on the parameters of
> cocoon.xconf. Perhaps
> there is where the memory goes.
>
> Best Regards,
>
> Antonio Gallardo
>
> > Regards
> >
> > Alex
> >
> > At 10:46 18/08/2004 +0200, you wrote:
> >>Hi all,
> >>
> >>I have a page that displays the memory usage of my Cocoon
> servlet, and it
> >>free memory decreases constantly.
> >>Is it normal to loose about 300Kb of memory in every refresh of this
> >>page?.  No other activity is held.
> >>What are your experiences in this area?
> >>
> >>David
> >>************************************************************
> * Este correo
> >>ha sido procesado por el Antivirus del Grupo FCC
> >>*************************************************************
> >
> >
> >
> ---------------------------------------------------------------------
> > To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> > For additional commands, e-mail: users-help@cocoon.apache.org
> >
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
> For additional commands, e-mail: users-help@cocoon.apache.org
>
>
> *************************************************************
> Este correo ha sido procesado por el antivirus del Grupo FCC.
> *************************************************************
>

*************************************************************
Este correo ha sido procesado por el antivirus del Grupo FCC.
*************************************************************

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@cocoon.apache.org
For additional commands, e-mail: users-help@cocoon.apache.org


Mime
View raw message