Tomcat启动报错或警告: org.apache.catalina.webresources.Cache.getResource Unable to add the resource

Tomcat启动报错或警告: org.apache.catalina.webresources.Cache.getResource Unable to add the resource
报错信息如下:**为任意位置

org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [**] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

只要在$CATALINA_BASE/conf/context.xml里增加资源最大可缓存的大小就行了,大小可按自己的需要定义

<?xml version='1.0' encoding='utf-8'?><Context>    <WatchedResource>WEB-INF/web.xml</WatchedResource>    <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>    <Resources        cachingAllowed="true"        cacheMaxSize="100000"    /></Context>
更多配置参考http://tomcat.apache.org/tomcat-8.0-doc/config/resources.html里的详细参数

免责声明:本网信息来自于互联网,目的在于传递更多信息,并不代表本网赞同其观点。其原创性以及文中陈述文字和内容未经本站证实,对本文以及其中全部或者部分内容、文字的真实性、完整性、及时性本站不作任何保证或承诺,并请自行核实相关内容。本站不承担此类作品侵权行为的直接责任及连带责任。如若本网有任何内容侵犯您的权益,请及时联系我们,本站将会在24小时内处理完毕。
相关文章
返回顶部