Tomcat 8 throwing – org.apache.catalina.webresources.Cache.getResource Unable to add the resource

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:

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.