You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@cocoon.apache.org by Raphael Amselli <r_...@amselli.fsbusiness.co.uk> on 2001/03/07 23:34:58 UTC
Memory problem
Hi,
I am using Cocoon 1.8.2 on a Linux Platform (Redhat 6.2) with JDK 1.2
Apache 1.3.14 with Jserv and jwsdk 2.0.
The Problem is that everytime I call Cocoon, it consummes a lot of
memory but it doesn't free it.
As a result, I have to reboot my apache quite often.
In my producer, I have added a System.gc to call the garbage collector
which doesn t do much.
Any Ideas welcomed!
Raph
Re: Memory problem
Posted by Thomas Patterson <tp...@telisphere.com>.
Folks,
We are using Cocoon 1.8 and, using JProbe, I was able to determine a serious memory issue related to Cocoon. Over the course of say 100,000 complex page generations, the JVM would run out of RAM.
I resolved the issue in the following way:
- I patched a bug in the way that Cocoon was caching stylesheets. It was including the request params as part of the cache key. Our application is extremely dynamic, so essentially the cache grew without bounds until the JVM died. This has, I believe, been fixed in the latest release according to the release notes.
- I turned caching off. Again, our application is so dynamic that caching is useless, it was just wasting RAM.
Doing these 2 things allowed an application with a 64MB memory limit that used to die after about 60,000 page generations to run indefinitely with a 32MB limit.
-Tom
----- Original Message -----
From: Raphael Amselli
To: cocoon-users@xml.apache.org
Sent: Wednesday, March 07, 2001 2:34 PM
Subject: Memory problem
Hi,
I am using Cocoon 1.8.2 on a Linux Platform (Redhat 6.2) with JDK 1.2
Apache 1.3.14 with Jserv and jwsdk 2.0.
The Problem is that everytime I call Cocoon, it consummes a lot of
memory but it doesn't free it.
As a result, I have to reboot my apache quite often.
In my producer, I have added a System.gc to call the garbage collector
which doesn t do much.
Any Ideas welcomed!
Raph