
(Causing you and me to use poor cache settings without being notified.) The problem didn't appear in Tomcat 7 because Tomcat 7 simply didn't output warnings in this situation. So Tomcat didn't have enough cache entries that it could expire, because they were too fresh, so it couldn't free enough cache and thus outputs warnings. The problem is caused by Tomcat being unable to reach its target cache size due to cache entries that are less than the TTL of those entries. Note that the warnings may come back under higher traffic situations.

Than tune for optimum settings where the warnings disappear. So the default is 10240 (10 mbyte), so set a size higher than this.

Short AnswerĪdd this within the Context xml element of your $CATALINA_BASE/conf/context.xml: I had the same issue when upgrading from Tomcat 7 to 8: a continuous large flood of log warnings about cache. Have tried adding a resource but cannot get the config right. The attributes have gone from the context in Tomcat version 8. Trying to at least just disable the cache, but I cannot find an example of how to specify not to use the cache.

For me this is happening not at startup but constantly when the resource is requested. I have found mention of this happening at startup in a bug report that was supposedly fixed. I haven't specified any particular resource settings, and I didn't get this for 7.0.52. Was insufficient free space available after evicting expired cacheĮntries - consider increasing the maximum size of the cache I am getting this for lots of static image files: I have just upgraded Tomcat from version 7.0.52 to 8.0.14.
