当前位置:首页 > Apache > 正文内容

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

canca2年前 (2024-01-30)Apache301
关于缓存空间不足倒置无法添加资源的解决办法!相信很多朋友都遇到过了吧。

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

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>
  <ResourcescachingAllowed="true" cacheMaxSize="100000" allowLinking="true" />
</Context>
更多配置可参考http://tomcat.apache.org/tomcat-8.0-doc/config/resources.html里的详细参数


扫描二维码推送至手机访问。

版权声明:本文由Ant.Master's Blog发布,如需转载请注明出处。

本文链接:https://iant.work/post/872.html

分享给朋友:

“Tomcat启动报错或警告: org.apache.catalina.webresources.Cache.getResource Unable to add the resource” 的相关文章

Apache整合IIS通用80端口

第一步:修改httpd.conf文件,启用proxy模块             将文件中的LoadModule proxy_module modules/mod_proxy.so...

Apache URLRewriter

今日折腾网站,不得不用到了Apache 的Rewrite功能,虽说我对正则表达式并不陌生,但这东西学完就忘,忘了再学一样吃力,并且正则表达式只是学习Rewrite的一个方面。半天下来心急火燎,最终事没有办成,最后还是静下心来琢磨,总算蒙混了过去,这里做个备忘,希望对后来的人有所帮助。 URL Rew...

Apache Tomcat Jk 多虚拟主机配置方法

准备工作: 1.Apache Server 2.2 2.mod_jk.so 3.Tomcat 7 步骤: 1.Copy mod_jk.so to Apache 2.2/modules/ 2.modify Apache 2.2/config/httpd.conf Add: # module mod_j...

Apache各版本组件下载

https://www.apachehaus.net/modules/http://www.apachelounge.com/viewtopic.php?p=24952编译命令cl.exe /MD /W3 /O2 /D WIN32 /D NDEBUG -I"c:\Apache22\include"...

Apache下htaccess文件不起作用/rewrite 没有效果

【Apache下rewrite不成功】不成功按照如下三步排查:【第一步:打开rewrite 模块没有】首先 我们找到apache安装目录下的 /conf/http.cnf打开,文件 搜索rewrite 找到#LoadModule rewrite_module modules/mod_rewrite....

APACHE如何里一个站点绑定多个域名?用ServerAlias servername

APACHE2如何里一个站点绑定多个域名?用ServerAlias以前很笨,要使多个域名指向同一站点总是这样写:<VirtualHost *:80> ServerAdmin i@kuigg.com DocumentRoot /www/kuigg.com...

发表评论

访客

◎欢迎参与讨论,请在这里发表您的看法和观点。