Greg and Mark,
On 11/5/23 09:31, Mark Thomas wrote:
On 05/11/2023 10:18, Greg Huber wrote:
OK thanks, the docs mention "static resource cache" but I could not
find info on what it actually is.
It caches the content of static resources in memory and uses that rather
than accessing disk.
I am loading maven jars and /target/classes.
eg:
<PostResources
base="/home/devuser/git/myproject/tools/META-INF"
className="org.apache.catalina.webresources.DirResourceSet"
webAppMount="/WEB-INF/classes/META-INF" />
<PostResources
base="/home/devuser/git/myproject/target/classes"
className="org.apache.catalina.webresources.DirResourceSet"
webAppMount="/WEB-INF/classes" />
<PostResources
base="/home/devuser/.m2/repository/commons-logging/commons-logging/1.2/commons-logging-1.2.jar"
className="org.apache.catalina.webresources.FileResourceSet"
webAppMount="/WEB-INF/lib/commons-logging-1.2.jar" />
As its purely for development guess it makes no difference?
I doubt you'll notice if you disable it.
+1
Since you are using JAR files, the caching won't matter once the classes
themselves are loaded-into memory. So you may observe some slowness
early in the lifetime of the web application after deployment, but at
long as your code, etc. isn't trying to re-scan JAR files all the time,
etc. then you should be fine.
-chris
On 05/11/2023 10:02, Mark Thomas wrote:
On 04/11/2023 11:03, Greg Huber wrote:
Hello,
I am using the <Resources> and <PostResources> to run tomcat for
debugging my app (and it is pretty awesome). I am getting the cache
warning limit, as it is 10mb, what effect would it have if I turned
off the cache ie cachingAllowed="false" rather than having to
increase the limit all the time?
This is one of those "it depends" questions. There are lots of
factors that will influence how effective the cache is. You could try
and reason what the impact would be but you will likely get a more
accurate answer, faster by just trying it and measuring the impact.
Mark
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org