I have just upgraded Tomcat from version 7.0.52 to 8.0.14.

I am getting this for lots of static image files:

org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/base/1325/WA6144-150×112.jpg] to the cache because there was insufficient free space available after evicting expired cache entries – consider increasing the maximum size of the cache

I haven’t specified any particular resource settings, and I didn’t get this for 7.0.52.

 

In your $CATALINA_BASE/conf/context.xml add block below before </Context>

<Resources cachingAllowed="true" cacheMaxSize="100000" />

For more information: http://tomcat.apache.org/tomcat-8.0-doc/config/resources.html

Leave a Reply

Your email address will not be published. Required fields are marked *