Tomcat : consider increasing the maximum size of the cache

tomcat8佈署war包,出現如標題的報錯,這是因爲tomcat8以上對resource採取了cache,而默認的大小是10M。


解決的辦法很簡單,就是在context.xml中調大緩存。

在配置文件<Context>中添加一行,代碼如下:

<Context>

.........

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

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章