tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mark Thomas <ma...@apache.org>
Subject Re: Tomcat 6.0.29 using more and more RAM until it collapses?
Date Fri, 12 Nov 2010 19:19:08 GMT
On 12/11/2010 19:12, Brian wrote:
> Oh, I think I found what you were asking, the "path to the GC root": 
> 
> org.apache.naming.resources.FileDirContext$FileResource
> org.apache.naming.resources.CacheEntry
> org.apache.naming.resources.CacheEntry[XXX]
> org.apache.naming.resources.ResourceCache
> org.apache.naming.resources.ProxyDirContext
> etc 
> etc
> etc

OK, that is indeed Tomcat's static file cache. Given you only have two
WARs and the default cache size is 10MB per WAR I am struggling to see
how this could be causing an OOME.

Anyway, the settings for this are on the Context element. The simplest
way to disable static file caching everywhere is to add the following to
the Context element in CATALINA_BASE/conf/context.xml

cachingAllowed="false"

Mark

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message