Tomcat 8 有关于无法释放后台缓存逐出进程的缓存的警告

Tomcat 8 has warning about not able to free cache of background cache eviction process

我正在 spring mvc 上开发应用程序,有时我在控制台中看到这条消息:

The background cache eviction process was unable to free [10] percent of the cache for Context [/myApp] - consider increasing the maximum size of the cache. After eviction approximately [9,501] KB of data remained in the cache.

为什么以及我现在应该做什么?

谢谢大家

此消息与您的 tomcat 服务器相关,

在您的 $CATALINA_BASE/conf/context.xml 中,在 </Context>

之前添加块

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