我正在 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" />
关于spring-mvc - Tomcat 8 警告无法释放后台缓存逐出进程的缓存,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42739017/