解決tomcat控制台亂碼+清除過期緩存條目后可用空間仍不足 - 請考慮增加緩存的最大空間問題


一、亂碼

1、打開Tomcat的目錄,找到conf文件夾,一般修改server.xml中的編碼集,改為utf-8即可

 

2、若server.xml中編碼設置的就是utf-8,可以修改logging.properties文件

找到java.util.logging.ConsoleHandler.encoding = UTF-8,默認的是utf-8,修改為:java.util.logging.ConsoleHandler.encoding = GBK

 

 保存,重新啟動

 二、springboot tomcat  緩存

org.apache.catalina.webresources.Cache.getResource 無法將位於[/WEB-INF/classes/templates/]的資源添加到Web應用程序[/b]的緩存中,因為在清除過期緩存條目后可用空間仍不足 - 請考慮增加緩存的最大空間。

org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [**] to the cache because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM