On Mon, Nov 6, 2023 at 3:15 PM Mark Thomas <ma...@apache.org> wrote: > > On 05/11/2023 17:23, Greg Huber wrote: > > Thanks Mark and Chris. > > > >>> <PostResources > >>> base="/home/devuser/git/myproject/target/classes" > >>> className="org.apache.catalina.webresources.DirResourceSet" > >>> webAppMount="/WEB-INF/classes" /> > > > > I have not noticed any slowness yet. > > > > There are alot of jars (approx 160), but the target/classes folder are my > > app's classes that I am working on. These can change (ie not static), so > > may be better to switch it off. > > > > Is there anyway to calculate the size needed for the cache setting? > > The maximum useful size will be the total size of static resources (i.e. > everything NOT under WEB-INF/lib or WEB-INF/classes). > > The right size is going to be a trade-off between the cost of the memory > for the cache and the benefits the cache brings. Those benefits are > going to be application (and hardware) dependent. > > Mark
+1 You can also explore the combination of cacheTtl and cache size. By default, TTL is 5 sec. If the cache is not full, a longer TTL means better performance BUT if cache is getting filled up because of longer TTL then tomcat will evict elements even before TTL elapsed. Again, it's a bit tricky. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org