Tomcat Run Jenkins startup log warning Org.apache.catalina.webresources.Cache.getResource Unable to add the resource

Source: Internet
Author: User
Tags tomcat

[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 were insufficient free space available after evicti Ng expired Cache Entries-consider Increasing the maximum size of the cache


There are Michikumo translations: (Processing get/Jenkins/work/Static_web xxx.xxx.xxx.xxx/configuration: HTTP-NIO-8080-EXEC-8]ORG.APACHE.CATALINA.WEBRESOURCES.CAC He GetResource cannot add resource [/web-inf/classes/lib/FORM/rowset. Caching for Web applications (/Jenkins) because there is not enough free space after expired cache entries are cleared-consider increasing the maximum size of the cache


Search for a blog post: http://blog.csdn.net/xiaocao9903/article/details/53393473

Added in the <Context> in Tomcat's/conf/context.xml

<!--this unit is kb-->

<resources cachingallowed= "true" cachemaxsize= "100000" >


Resources are resource definition elements
Cachingallowed and Cachemaxsize are public properties
The meaning of the Representative is:
Cachingallowed: If the value of this flag is true, the cache will be used for the static resource. If not specified, the default value of the flag is true. This value can be changed while the Web application is running (for example, through JMX).

When caching is disabled in the cache, any resources are currently purged from the cache.
Cachemaxsize: The maximum size of the static resource cache in kilobytes. If not specified, the default value is 10240 (10 megabytes). This value can be changed while the Web application is running (for example, through JMX).

If the cache is using more memory than the new limit cache will attempt to scale over time,

To meet the new limits to reduce. If necessary, the cacheobjectmaxsize will be lowered to ensure that it is not less than CACHEMAXSIZE/20.


Here, I am very grateful to bloggers for their blog posts.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

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.