tomcat启动报错
警告:org.apache.catalina.webresources.Cache.getResource Unable to add the resource at xxx to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache
错误翻译:tomcat的缓存因为没有足够的可用空间后加载文件
解决办法:在tomcat的/conf/context.xml中的中添加
<Resources cachingAllowed="true" cacheMaxSize="100000" />
Resources :资源定义元素
cachingAllowed和cacheMaxSize 是公共属性
代表的意思是:
cachingAllowed:如果此标志的值是true,将用于静态资源的高速缓存。如果没有指定,该标志的默认值是true。这个值可以在Web应用程序运行时进行更改(例如,通过JMX)。
cacheMaxSize :以KB为单位的静态资源缓存的最大尺寸。如果未指定,缺省值为10240 (10兆字节)。这个值可以在Web应用程序运行时进行更改(例如,通过JMX)。
注:JMX是Java Management Extensions(Java管理扩展)的缩写,是一个为应用程序植入管理功能的框架。用户可以在任何Java应用程序中使用这些代理和服务实现管理。