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

太黑_thj 发布于 2016/09/07 14:50
阅读 10K+
收藏 1
警告: 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了,还依然如此提示我,我也是醉了,求个大神帮忙解决一下,虽然警告不影响程序运行,但是老是这么跳,老不舒服了 

加载中
1
fz00x0zf
fz00x0zf

引用来自“wonderfulXiaobo”的评论

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

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

正解
0
wonderfulXiaobo
wonderfulXiaobo

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

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

0
太黑_thj
太黑_thj
没用 依旧如此


警告: 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.
0
罗先生
解决了,想知道什么原理!
0
河边妞啊
河边妞啊
我也想知道为什么,不配置这个就回收不够吗?
0
某评伽
某评伽

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

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

返回顶部
顶部