Search code examples
tomcat8catalina.out

Unable to eliminate Tomcat Cache warnings in catalina.out


Since switching to Tomcat 8, I continually get messages like this in my catalina.out

org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/intranet/includes/MailFunctions.jsp] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

I've found in the docs to add entries like cachingAllowed="false" antiResourceLocking="false" antiJARLocking="true" cacheMaxSize="0" cacheTTL="1" to my META-INF/context.xml file which I've done, but this doesn't seem to eliminate the problem.

Does anyone know how to stop these messages?

Thanks


Solution

  • For anyone else unable to find an answer to this problem, the answer seems to be as simple as adding this to your $SERVER_HOME/conf/context.xml inside the tag