记录Tomcat配置和运作中遇到的问题 2019-11-23

问题一:启动tomcat 报Unable to add the resource at [] to the cache

问题详情:
11-Nov-2019 15:44:15.456 警告 [http-nio-8080-exec-6] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/1128353_003/da6b85d5364641f3840b2464a9acb03d.jpg] to the cache for web application [/var/faceImage] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache

解决办法:

第一种方法(推荐):Tomcat 的存放目录,/conf/context.xml的context标签里面增加

<Resources cachingAllowed="true" cacheMaxSize="100000" />

第二种方法:禁用缓存,disable the cache,在context标签里面添加如下设置

<Resources cachingAllowed="false"/>

©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容