gpt4 book ai didi

java - Tomcat 8.5 - 缓存警告泛滥

转载 作者:行者123 更新时间:2023-11-28 22:11:29 29 4
gpt4 key购买 nike

我正在尝试从 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?
我将其添加到 list 中,但它不起作用:

Dependencies: org.slf4j

最佳答案

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

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

关于java - Tomcat 8.5 - 缓存警告泛滥,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40285871/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com