tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Pid <>
Subject Re: Tomcat 5.5.25 | Memory leak in Web Application
Date Mon, 11 Oct 2010 16:36:36 GMT
On 11/10/2010 17:30, Anurag Kapur wrote:
> The objects holding references to the character arrays that ultimately
> consume all the memory are of type
> org.apache.jasper.runtime.BodyContentImpl as indicated in the object
> reference tree below:
> There was a bug reported in Tomcat 5.5.9 which says
> The problem is that this huge array never gets reset due to the object pooling
> implementation in Jasper (JspFactoryImpl maintains a pool of PageContextImpl
> objects. Each PageContextImpl object maintains an array of BodyContentImpl
> objects), so the memory it consumed is never returned to the heap.
> We do not use the suggest JVM argument in our Tomcat 5.5.27 JVM
> -Dorg.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER=true
> Could adding this argument to the Tomcat JVM resolve the problem?

I suspect it would only work if the app has JSPs which were pre-compiled
against 5.5.9, rather than a newer version.


View raw message