Hi Mark, Chris, and all the gurus, I haven't applied this change yet, but something good is happening: Right now, my Tomcat installation is running fine! So given that I havent made any changes to my code, I guess my problem is that sometimes when I stop my website, something goes wrong and not al the resources get liberated. I had noticed some warnings about that indeed. So I guess my problem was not the static/dynamic pages cache as I thought when using the profiler, or they way the DBMS is handled, or any other issue in my programming. As you said from the beginning, when you said that the 10MB cache should not be a problem. So now, given that right now the server is runnning fine, I guess I should concentrate on the problem that sometimes happen when stopping my website.
> -----Original Message----- > From: Mark Thomas [mailto:ma...@apache.org] > Sent: Friday, November 12, 2010 02:19 PM > To: Tomcat Users List > Subject: Re: Tomcat 6.0.29 using more and more RAM until it collapses? > > 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-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org