java - springboot 自带tomcat启动报错
PHP中文网
PHP中文网 2017-04-18 10:29:54
[Java讨论组]

使用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依然报这个错误,不知道如何解决?

PHP中文网
PHP中文网

认证0级讲师

全部回复(2)
阿神

我觉得把那个错误翻译过来就知道答案了

伊谢尔伦

如果是用tomcat,那在你的tomcat_home/conf/Catalina/localhost/里的context文件里,添加这么一行:

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

把cacheMaxSize调大就行了。

热门教程
更多>
最新下载
更多>
网站特效
网站源码
网站素材
前端模板
关于我们 免责申明 举报中心 意见反馈 讲师合作 广告合作 最新更新 English
php中文网:公益在线php培训,帮助PHP学习者快速成长!
关注服务号 技术交流群
PHP中文网订阅号
每天精选资源文章推送
PHP中文网APP
随时随地碎片化学习

Copyright 2014-2025 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号