java - springboot 自带tomcat启动报错

查看:439
本文介绍了java - springboot 自带tomcat启动报错的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问 题

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

解决方案

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

这篇关于java - springboot 自带tomcat启动报错的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆