使用springboot自帶的tomcat,在啟動(dòng)的時(shí)候報(bào)錯(cuò)如下,
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命令看了下內(nèi)存使用情況
total used free shared buffers cached
Mem: 1922200 1202808 719392 176 8212 137504
-/+ buffers/cache: 1057092 865108
Swap: 1015804 132020 883784
我本身的項(xiàng)目war包才64M,這個(gè)不是緩存的問題,我把cache清空了,依舊報(bào)這個(gè)錯(cuò)誤,比較困惑,不知道如何解決了。
我棄用了springboot自帶的tomcat,配置了自己的tomcat依然報(bào)這個(gè)錯(cuò)誤,不知道如何解決?
2 回答

尚方寶劍之說
TA貢獻(xiàn)1788條經(jīng)驗(yàn) 獲得超4個(gè)贊
如果是用tomcat,那在你的tomcat_home/conf/Catalina/localhost/里的context文件里,添加這么一行:
<Resources cachingAllowed="true" cacheMaxSize="100000" />
把cacheMaxSize調(diào)大就行了。
添加回答
舉報(bào)
0/150
提交
取消