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