Tomcat 启动时报 to the cache because there was insufficient free space available after evict
2018-03-14 16:05
701 查看
刚入职一家公司,从svn检出项目后,tomcat启动的时候会报一大堆的 XX.... to the cache because there was insufficient free space available after evict
说我的缓存不足 百度翻译就是:tomcat的缓存因为没有足够的可用空间后加载文件
我当时以为的idea的错误 然后我却在网上修该他的idea里面的内存 但是启动的时候还是会爆出一大堆的警报,严重拖慢我项目启动的时间,
后来经过在网上才找到别人给的一些答案 我就试了一下然后就成功了
下面是例子
在tomcat的/conf/context.xml中的<Context>中添加
<ResourcescachingAllowed="true"cacheMaxSize="100000"/>
下面是摘抄官网的结果
Resources 是资源定义元素
cachingAllowed和cacheMaxSize
是公共属性
代表的意思是:
cachingAllowed:如果此标志的值是
cacheMaxSize :
这个是Apache 的官网文档:
https://tomcat.apache.org/tomcat-8.0-doc/config/resources.html#Attributes
参考
https://stackoverflow.com/questions/26893297/tomcat-8-throwing-org-apache-catalina-webresources-cache-getresource-unable-to
说我的缓存不足 百度翻译就是:tomcat的缓存因为没有足够的可用空间后加载文件
我当时以为的idea的错误 然后我却在网上修该他的idea里面的内存 但是启动的时候还是会爆出一大堆的警报,严重拖慢我项目启动的时间,
后来经过在网上才找到别人给的一些答案 我就试了一下然后就成功了
下面是例子
在tomcat的/conf/context.xml中的<Context>中添加
<ResourcescachingAllowed="true"cacheMaxSize="100000"/>
下面是摘抄官网的结果
Resources 是资源定义元素
cachingAllowed和cacheMaxSize
是公共属性
代表的意思是:
cachingAllowed:如果此标志的值是
true,将用于静态资源的高速缓存。如果没有指定,该标志的默认值是
true。这个值可以在Web应用程序运行时进行更改(例如,通过JMX)。当缓存在缓存禁用任何资源目前是从缓存中清除。
cacheMaxSize :
以KB为单位的静态资源缓存的最大尺寸。如果未指定,则缺省值为10240(10兆字节)。这个值可以在Web应用程序运行时进行更改(例如,通过JMX)。如果缓存正在使用的内存大于新的限制缓存将尝试规模随着时间的推移,以满足新的限制,以减少。如果需要的话,cacheObjectMaxSize将降低,以确保它是不大于 cacheMaxSize/20。 |
https://tomcat.apache.org/tomcat-8.0-doc/config/resources.html#Attributes
参考
https://stackoverflow.com/questions/26893297/tomcat-8-throwing-org-apache-catalina-webresources-cache-getresource-unable-to
相关文章推荐
- Tomcat 启动时报 to the cache because there was insufficient free space available after evict
- Tomcat 启动时报 to the cache because there was insufficient free space available after evict
- Tomcat 启动时报 to the cache because there was insufficient free space available after evict
- 解决to the cache because there was insufficient free space available after evict
- Tomcat8启动报there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
- tomcat--1--because there was insufficient free space available after evicting expired cache entries
- tomcat部署jenkins启动报错:insufficient free space available after evicting expired cache entries-consider increasing the maximum size of the cache.
- here was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
- TOMCAT启动时报:Last packet sent to the server was 0 ms ago
- tomcat 启动时报错:To prevent a memory leak, the JDBC Driver has been forcibly unregistered
- Eclipse启动时报错:A Java RunTime Environment (JRE) or Java Development Kit (JDK) must be available in order to run Eclipse. No java virtual machine was found after searching the following locations:…
- Tomcat启动报错或警告: org.apache.catalina.webresources.Cache.getResource Unable to add the resource
- Unable to add the resource at [*/*/*.jar] to the cache because there
- tomcat9启动中提示 org.apache.catalina.webresources.Cache.getResource Unable to add the resource
- Tomcat8 启动中提示 org.apache.catalina.webresources.Cache.getResource Unable to add the resource
- tomcat9启动中提示 org.apache.catalina.webresources.Cache.getResource Unable to add the resource
- SQL Assistant 注册码(key) Unable to tegister ADO.Net Database manager because of insufficient privileges available to the c
- tomcat 运行jenkins启动时日志警告org.apache.catalina.webresources.Cache.getResource Unable to add the resource
- [tomcat启动报错]registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped
- 64位Ubuntu14.04 tomcat日志报错 There is insufficient memory for the Java Runtime Environment to continue