The environment
- Linux/Ubuntu20.04 LTS
- IntelliJ IDEA Community Editon 2021.1
- Apache tomcat — 8.5.68
- Apache tomcat — 7.0.109
abnormal
Version used is apache-tomcat-8.5.68
Org. Apache. Catalina. Webresources. Cache. GetResource because after clear Cache entry date available space is still insufficient
Org. Apache. Catalina. Webresources. Cache. GetResource cannot be located in / / WEB - INF/classes/resources to be added to the WEB application [/ SSH] in the Cache, Because there is not enough free space after clearing expired cache entries - consider increasing the maximum space in the cache. [localhost-startStop-1] org.apache.catalina.webresources.Cache.getResource Cannot be located in [/ WEB - INF/classes/target/classes/target/classes/target/classes/WebRoot/WEB - INF/lib/jboss - JMX. Jar] resources are added to the WEB application [/ SSH ] because there is not enough free space after clearing expired cache entries - consider increasing the maximum space in the cache.
why
- The cache bar is still not free enough. Please consider increasing the maximum cache space
- Tomcat is too high for the project version
plan
- Add (default is 1024KB)
at the bottom of /conf/context.xml in the running Tomcat directory
<WatchedResource>WEB-INF/web.xml</WatchedResource> <WatchedResource>${catalina.base}/conf/web.xml</WatchedResource> <! -- Uncomment this to disable session persistence across Tomcat restarts --> <! -- <Manager pathname="" /> --> <! --creat bu layuji 0n 2021-06-29 --> <Resources cachingAllowed="true" cacheMaxSize="100000" />
Tip: It’s best to add a comment so that you remember why you added this code if you forget it later!
- Use the running version of Tomcat 7.0.109 instead
In the rainy season, eat the rainbow