spring-mvc - Tomcat 8 警告无法释放后台缓存逐出进程的缓存

标签 spring-mvc tomcat8

我正在 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/

相关文章:

java - 为什么我的服务器停止响应并且有办法监控它吗?

ubuntu-16.04 - 设置了 CATALINA_PID 但指定的文件不存在

jsp - JSTL-c :url not working with form action

java - 如何在jsp上显示带有某些对象的嵌套树

oracle - Spring 3 xml解析器问题-XSDException

java - 在 REST Controller 中使用 AtomicLong

java - 如何在 Tomcat 下使用 Jersey 2.7 和 Jackson 2.0 配置 RESTful 服务

带有 SSL 的 Java JMX 客户端

javascript - 使用 Spring MVC 时如何在不刷新整个页面的情况下重新加载 HTML 表格

ssl - 在 tomcat 8 中启用 SSL