Failed to resolve Tomcat cache warnings in catalina.out file
Since upgrading to Tomcat 8, I keep getting messages like this in my catalina .out
org.apache.catalina.webresources.Cache.getResource Unable to add resource to [/intranet/includes/MailFunctions.jsp] to cache because there was not enough free space after spilling expired cache entries - consider increasing the maximum cache size
I found in the docs entries like cachingAllowed = "false" antiResourceLocking = "false" antiJARLocking = "true" cacheMaxSize = "0" cacheTTL = "1" in the META-INF / context.xml file I did but this, doesn't seem to fix the problem.
Does anyone know how to stop these messages?
thank
For anyone who can't find an answer to this problem, the answer seems to be as simple as adding this to your $ SERVER_HOME / conf / context.xml file inside a tag
I had the same problem, but I found the answer in another post that worked for me
In your $ CATALINA_BASE / conf / context.xml add below block before
</Context>
<Resources cachingAllowed="true" cacheMaxSize="100000" />
This resolved it for me.
"inside the tag" where I think:
- Tomcat / bin / catalina.bat int this add
set JAVA_OPTS=-Xms256m -Xmx512m -Djava.awt.headless=true [-XX:MaxPermSize=128M]
- eclipse-> windows-> preferences ..-> tomcat-> jvm ..-> jvm add
-Xms256m -Xmx512m
- eclipse-> preference-> Java-> instal jres-> edit add
-Xms256M -Xmx640M -XX:PermSize=256m -XX:MaxPermSize=768m