I am running Apache Tomcat/9.0.19 and recently I have noticed a lot of warning messages on the catalina.out log.
WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/static/maps/scripts/app-72be477367.js.map] to the cache for web application [##01] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
WARNING [main] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/static/maps/scripts/app-f223be6846.js.map] to the cache for web application [##01] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
Adding the following line to the conf/context.xml solves this problem and my log is no longer flooded.
<Resources cachingAllowed="true" cacheMaxSize="100000" />
How do I know what is the correct entry for my cacheMaxSize. Am I over-allocating space to cache.