tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <>
Subject Re: Tomcat 6.0.29 using more and more RAM until it collapses?
Date Fri, 12 Nov 2010 18:18:31 GMT
On 12/11/2010 18:13, Brian wrote:
> I found the problem.... and this time it wasn't my fault!  :-)

I wouldn't be so sure about that just yet.

> I used a profiler ( and took a snapshot of all the objects
> in the JVM. I found that tons of RAM is being used by images of my delivered
> http responses. I mean, I have thousands of static HTML pages in my site. It
> seems that Tomcat is saving their content in the memory, as a cache, in
> thousands of objects. 

Tomcat's static content cache is 10MB per web application by default. I
suspect something else is holding on to those references. Where to the
GC roots trace to?

> That was the hardest part, to find out that. Now I wonder where do I
> configure Tomcat to stop doing this, or at least to reduce the cache.....

You need to confirm what is holding on to those references first.


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

View raw message