前往小程序,Get更优阅读体验!
立即前往
首页
学习
活动
专区
工具
TVP
发布
社区首页 >专栏 >Tomcat启动报错或警告: org.apache.catalina.webresources.Cache.getResource Unable to add the resource

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

作者头像
拓荒者
发布2019-09-29 17:25:19
3.9K0
发布2019-09-29 17:25:19
举报
文章被收录于专栏:运维经验分享运维经验分享

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

代码语言:javascript
复制
  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里的详细参数

(adsbygoogle = window.adsbygoogle || []).push({});

本文参与 腾讯云自媒体分享计划,分享自作者个人站点/博客。
如有侵权请联系 cloudcommunity@tencent.com 删除

本文分享自 作者个人站点/博客 前往查看

如有侵权,请联系 cloudcommunity@tencent.com 删除。

本文参与 腾讯云自媒体分享计划  ,欢迎热爱写作的你一起参与!

评论
登录后参与评论
0 条评论
热度
最新
推荐阅读
目录
  • Tomcat启动报错或警告: org.apache.catalina.webresources.Cache.getResource Unable to add the resource
领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档