tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Caldarale, Charles R" <Chuck.Caldar...@unisys.com>
Subject RE: Tomcat 6.0.29 using more and more RAM until it collapses?
Date Tue, 16 Nov 2010 03:38:21 GMT
> From: Brian [mailto:bbprefix-mail@yahoo.com] 
> Subject: RE: Tomcat 6.0.29 using more and more RAM until it collapses?

> sometimes Tomcat thinks that needs a huge buffer, so it makes 
> the array to increase to millions of chars. I have no such big
> pages in my site

This is the crux of the problem - you apparently *do* have something that requires such a
large buffer.  Don't know if it's nested JSPs, some kind of recursive include, or ???.  Unfortunately,
I'm not aware of any existing mechanism in Jasper that will log these exceptional allocations,
so someone would have to put in some new logging code to catch the situation.  The method
that does this is reAllocBuff() at the end of org.apache.jasper.runtime.BodyContentImpl; the
current algorithm usually just doubles the size of the buffer when the size of the current
one is exceeded.  It would be easy just to add a simple logging call (or even a print statement,
temporarily) that includes a stack trace when some size threshold is exceeded.

 - Chuck


THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus
for use only by the intended recipient. If you received this in error, please contact the
sender and delete the e-mail and its attachments from all computers.


Mime
View raw message