为了账号安全,请及时绑定邮箱和手机立即绑定

springboot 自带tomcat启动报错

springboot 自带tomcat启动报错

皈依舞 2019-02-20 10:34:32
使用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 回答

?
炎炎设计

TA贡献1808条经验 获得超4个赞

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

查看完整回答
反对 回复 2019-03-01
?
尚方宝剑之说

TA贡献1788条经验 获得超4个赞

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

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

把cacheMaxSize调大就行了。

查看完整回答
反对 回复 2019-03-01
  • 2 回答
  • 0 关注
  • 895 浏览

添加回答

举报

0/150
提交
取消
微信客服

购课补贴
联系客服咨询优惠详情

帮助反馈 APP下载

慕课网APP
您的移动学习伙伴

公众号

扫描二维码
关注慕课网微信公众号