Tomcat warinigunable to add the resource at [] to the cache

Source: Internet
Author: User
Tomcat Warinig Unable to add the resource @ [] to the cache

The tomcat7.07 of the line, with tomcat8.5.4 on the line, out of this

(1) [Containerbackgroundprocessor[standardengine[catalina]]]org.apache.catalina.webresourcesxache.getresource Unable to add the resource @ [/webinf/lib/libsigar-x86-linux.so] to the cache because there is insufficient free space a Vailable after evicting expired cache Entries-consider increasing the maximum size of the cache

(2) [Containerbackgroundprocessor[standarder»gine[catalina]] Org.apache.catalina.webresourcesXache.backgroundProcess the background cache eviction

Process is unable to free [ten] percent of the cache for Context []-Consider increasing the

Maximum size of the cache. After eviction approximately 110,228] KB of data remained in the

Cache

Waring information roughly means that the resource cannot be added to the cache because there is not enough space available.

The configuration of the static resource cache was added in the original TOMCAT8

The following is a description of the two relevant parameters:

Cachemaxsize: Static resource Cache maximum, in kilobytes, default value is 10240KB

The maximum size of the static resource cache in kilobytes. If not specified, the default value is 10240 (megabytes). This value could be changed while the Web application is running (e.g. via JMX). If the cache is using a more memory than the new limit the cache would attempt to reduce the size of over time to meet the new Li Mit. If necessary, cacheobjectmaxsize'll be reduced to ensure that it's no larger thancachemaxsize/20.

Cachingallowed: Whether to allow static resource caching, by default True

If The value of this flag is true, the cache for static resources would be used. If not specified, the default value of the flag is true. This value could be changed while the Web application is running (e.g. via JMX). When the cache was disabled any resources currently in the cache was cleared from the cache.

corresponding to two parameters, there are two ways to solve

1: Consider increasing the maximum size of the cache

2: Close Cache V

Option 1:

Increase the cache to include in Conf/context.xml:

<resources cachingallowed= "true" cachemaxsize= "102400"/>

Method 2:

Turn off cache to add in Conf/context.xml:

<resources cachingallowed= "false" cachemaxsize= "0"/>

I have a big Daniel Exchange group, inside the daily update new video new technology, the group has Ali Daniel Live to explain the technology, as well as the Java large-scale Internet technology video free to share to everyone. If you want to learn Java engineering, high performance and distributed, in Layman's. Performance tuning, Spring,mybatis,netty source analysis of friends can add Java Advanced Group: 454377428, the group has Ali Daniel Live interpretation technology, as well as Java large-scale Internet technology video free to share to everyone

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.