Tomcat9 老是提示警告,如何解决
警告: 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: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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
从tomcat8中开始就增加了静态资源缓存的配置 ,是需要设置相应的参数的,具体可参考这篇博客:
http://www.youyong.top/article/1158d1fece13
我也想知道为什么,不配置这个就回收不够吗?
解决了,想知道什么原理!
没用 依旧如此
警告: 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.
引用来自“wonderfulXiaobo”的评论
在tomcat的/conf/context.xml中的Context中添加
<Resources
cachingAllowed="true"
cacheMaxSize="100000"
/>