java - springboot 自带tomcat启动报错

 曾经沧海难为水文杰59552066 发布于 2022-10-26 14:27
使用springboot自带的tomcat,在启动的时候报错如下,
2016-12-17 20:32:36,177 INFO  [ContainerBackgroundProcessor[StandardEngine[Tomcat].StandardHost[localhost].StandardContext[]]] o.a.catalina.webresources.Cache - [] The background cache eviction process was unable to free [10] percent of the cache for Context [] - consider increasing the maximum size of the cache. After eviction approximately [9,620] KB of data remained in the cache.
然后用free命令看了下内存使用情况
             total       used       free     shared    buffers     cached
Mem:       1922200    1202808     719392        176       8212     137504
-/+ buffers/cache:    1057092     865108
Swap:      1015804     132020     883784
我本身的项目war包才64M,这个不是缓存的问题,我把cache清空了,依旧报这个错误,比较困惑,不知道如何解决了。 我弃用了springboot自带的tomcat,配置了自己的tomcat依然报这个错误,不知道如何解决?
2 个回答
  • 如果是用tomcat,那在你的tomcat_home/conf/Catalina/localhost/里的context文件里,添加这么一行:

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

    把cacheMaxSize调大就行了。

    2022-10-27 00:55 回答
  • 我觉得把那个错误翻译过来就知道答案了

    2022-10-27 00:55 回答
撰写答案
今天,你开发时遇到什么问题呢?
立即提问
热门标签
PHP1.CN | 中国最专业的PHP中文社区 | PNG素材下载 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有