tomcat-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Remy Maucherat <>
Subject Re: Memory leak? (
Date Thu, 04 May 2006 09:10:20 GMT
Jeff Turner wrote:
> 1 May:  93 Objects (126Mb)
> 2 May:  107 Objects (263Mb)
> 3 May:  492 Objects (486MB)

BodyContentImpls are pooled and reused since it makes JSP processing 
significantly faster. If the application is evil, and uses body tags 
with huge bodies (it seems to be the case here), then there could be a 

Large buffers may be discarded after usage, by setting the 
"org.apache.jasper.runtime.BodyContentImpl.LIMIT_BUFFER" system property 
to "true". Unfortunately, performance will go down and GC activity will 
go up.

If you would like to limit the amount of resident memory that is used, 
you can disable pooling of buffer objects completely using the 
"org.apache.jasper.runtime.JspFactoryImpl.USE_POOL" system property set 
to "false". The performance will go down further due to object 
allocations and GC activity, but you may have a few CPU cycles to spare.

BTW, you can set system properties in the file 
(although you may set them on the command line too).


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message