tomcat 運行jenkins啟動時日誌警告org.apache.catalina.webresources.Cache.getResource Unable to add the resource

來源:互聯網
上載者:User

[Handling GET /jenkins/job/static_web/configure from xxx.xxx.xxx.xxx : http-nio-8080-exec-8] org.apache.catalina.webresources.Cache.getResource Unable to add the resource at [/WEB-INF/classes/lib/form/rowSet.jelly] to the cache for web application [/jenkins] because there was insufficient free space available after evicting expired cache entries - consider increasing the maximum size of the cache


有道雲翻譯:(處理得到/ jenkins /工作/ static_web xxx.xxx.xxx.xxx /配置:http - nio - 8080 - exec - 8]org.apache.catalina.webresources.Cache。getResource無法添加資源[/ web - inf / classes / lib /形式/行集。對於web應用程式(/ jenkins)的緩衝,因為在清除到期的緩衝條目後沒有足夠的可用空間——考慮增加緩衝的最大大小


搜尋到一篇博文:http://blog.csdn.net/xiaocao9903/article/details/53393473

在tomcat的/conf/context.xml中的<Context>中添加

<!--這裡單位是 KB-->

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


Resources 是資源定義元素
cachingAllowed和cacheMaxSize 是公用屬性
代表的意思是:
cachingAllowed:如果此標誌的值是true,將用於靜態資源的快取。如果沒有指定,該標誌的預設值是true。這個值可以在Web應用程式運行時變更(例如,通過JMX)。

當緩衝在緩衝禁用任何資源目前是從緩衝中清除。
cacheMaxSize :以KB為單位的靜態資源緩衝的最大尺寸。如果未指定,則預設值為10240 (10MB)。這個值可以在Web應用程式運行時變更(例如,通過JMX)。

如果緩衝正在使用的記憶體大於新的限制緩衝將嘗試規模隨著時間的推移,

以滿足新的限制,以減少。如果需要的話,cacheObjectMaxSize將降低,以確保它是不大於 cacheMaxSize/20。


在這裡,十分感謝博主的博文。

聯繫我們

該頁面正文內容均來源於網絡整理,並不代表阿里雲官方的觀點,該頁面所提到的產品和服務也與阿里云無關,如果該頁面內容對您造成了困擾,歡迎寫郵件給我們,收到郵件我們將在5個工作日內處理。

如果您發現本社區中有涉嫌抄襲的內容,歡迎發送郵件至: info-contact@alibabacloud.com 進行舉報並提供相關證據,工作人員會在 5 個工作天內聯絡您,一經查實,本站將立刻刪除涉嫌侵權內容。

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.