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

原创
2019/09/26 10:47
阅读数 986

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

2016年10月09日 10:57:32 余不二 阅读数 15186 文章标签: javatomcatcache 更多

分类专栏: lan:JAVA

版权声明:本文为博主原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。

本文链接:https://blog.csdn.net/yu452148611/article/details/52764493

报错信息如下:**为任意位置

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里增加资源最大可缓存的大小就行了,大小可按自己的需要定义

 

 
  1. <?xml version='1.0' encoding='utf-8'?>

  2. <Context>

  3. <WatchedResource>WEB-INF/web.xml</WatchedResource>

  4. <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource>

  5. <Resources

  6. cachingAllowed="true"

  7. cacheMaxSize="100000"

  8. />

  9. </Context>

更多配置可参考http://tomcat.apache.org/tomcat-8.0-doc/config/resources.html里的详细参数

展开阅读全文
加载中

作者的其它热门文章

打赏
0
0 收藏
分享
打赏
0 评论
0 收藏
0
分享
返回顶部
顶部