【问题标题】:Tomcat 8.5 - Cache warning floodTomcat 8.5 - 缓存警告泛滥
【发布时间】:2017-03-10 05:05:50
【问题描述】:

我正在尝试从 Tomcat 8.0.37 迁移到 8.5.6

在这个新版本中,err 控制台不断充斥着这些警告:

oct. 27, 2016 3:16:40 PM org.apache.catalina.webresources.Cache getResource
WARNING: Unable to add the resource at [/WEB-INF/lib/something.jar] 
to the cache because there was insufficient free space available after evicting expired cache entries - 
consider increasing the maximum size of the cache

我想将 servlet(web.xml 或 Spring)配置为忽略某些文件类型的缓存 (*.jar)

我已经阅读了有关配置context.xml 文件的信息,但感觉就像是解决实际问题的方法。

如何告诉 Tomcat 将所有内容记录到 slf4j?
我将此添加到清单中,但它不起作用:

Dependencies: org.slf4j

【问题讨论】:

    标签: java spring tomcat configuration


    【解决方案1】:

    缓存警告是由 8.5.6 中的一个已知错误引起的,该错误将在 8.5.7 中修复。新版本应该会在一周左右推出。

    如果您想使用 slf4j,请按照 slf4j 说明重定向 java.util.logging 输出。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2015-02-06
      • 2018-12-17
      • 2017-08-02
      • 1970-01-01
      • 2016-05-22
      • 1970-01-01
      • 2022-08-11
      • 1970-01-01
      相关资源
      最近更新 更多