Tomcat9 老是提示警告,如何解决

发布于 2021-12-03 01:37:52 字数 2061 浏览 790 评论 5

警告: Unable to add the resource at [/WEB-INF/lib/twilio-java-sdk-6.3.0.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
九月 07, 2016 2:48:01 下午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/xml-apis-1.4.01.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
九月 07, 2016 2:48:01 下午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/xmlParserAPIs-2.6.2.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
九月 07, 2016 2:48:01 下午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/xmpcore-5.1.2.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
九月 07, 2016 2:48:01 下午 org.apache.catalina.webresources.Cache getResource
警告: Unable to add the resource at [/WEB-INF/lib/xom-1.0.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
九月 07, 2016 2:48:01 下午 org.apache.catalina.webresources.Cache backgroundProcess
信息: The background cache eviction process was unable to free [10] percent of the cache for Context [/dcps2] - consider increasing the maximum size of the cache. After eviction approximately [10,181] KB of data remained in the cache.

九月 07, 2016 2:48:12 下午 org.apache.catalina.webresources.Cache getResource


----------------------------------上面是警告信息-----------------------------

看这架势貌似是告诉俺内存不够了,但是我吧内存从100M给它加到1G了,还依然如此提示我,我也是醉了,求个大神帮忙解决一下,虽然警告不影响程序运行,但是老是这么跳,老不舒服了 

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(5

奈何桥上唱咆哮 2021-12-05 17:00:10

从tomcat8中开始就增加了静态资源缓存的配置 ,是需要设置相应的参数的,具体可参考这篇博客:

http://www.youyong.top/article/1158d1fece13

夜司空 2021-12-05 16:59:00

我也想知道为什么,不配置这个就回收不够吗?

顾忌 2021-12-05 16:40:45

解决了,想知道什么原理!

深巷少女 2021-12-05 03:22:56

没用 依旧如此

警告: Unable to add the resource at [/WEB-INF/lib/xom-1.0.jar] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

九月 21, 2016 9:27:36 上午 org.apache.catalina.webresources.Cache backgroundProcess

信息: The background cache eviction process was unable to free [10] percent of the cache for Context [/dcps2] - consider increasing the maximum size of the cache. After eviction approximately [10,182] KB of data remained in the cache.

平定天下 2021-12-04 20:56:10

引用来自“wonderfulXiaobo”的评论

在tomcat的/conf/context.xml中的Context中添加

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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文