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

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

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

分类专栏: lan:JAVAjava

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

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

报错信息以下:**为任意位置缓存

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 cachetomcat

只要在$CATALINA_BASE/conf/context.xml里增长资源最大可缓存的大小就好了,大小可按本身的须要定义ide

 

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

  2. <Context>.net

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

  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里的详细参数

相关文章
相关标签/搜索