How does Tomcat adjust cache and memory parameters ?, Tomcat Cache

Source: Internet
Author: User

How does Tomcat adjust cache and memory parameters ?, Tomcat Cache
Question

Bug1: the Tomcat memory size is insufficient.

Bug2:

Cache because there was insufficient free space available after evicting expired cache entries-consider increasing the maximum size of the cache
Solution
Bug1: it is recommended to change setenv. Sh or setclasspath. Sh of Tomcat, and add: java_opts = '-XMS [initial memory size]-xmx [maximum memory available ]'

In addition, you can see JVM settings-memory-heap. A simple and in-depth understanding of JVM principles.

Bug2: In the context. xml configuration file of Tomcat

 Join

 
Reference

[1]. JVM settings-memory-heap

[2]. Solve to the cache because there was insufficient free space available after evict

[3]. When Jenkins is deployed in Tomcat, the following error occurs: insufficient free space available after evicting expired cache entries-consider increasing the maximum size of the cache.

[4]. Tomcat memory size adjustment

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.