On 20.06.2016 12:06, Mike Noordermeer wrote:
Hi,I'm experiencing a very weird issue, and do not really have an idea where to start looking for the solution, hopefully someone here has an idea. As the Tomcat 8.5 Cache.getResource() call added some logging about the cache being too small, I'm trying to increase the size. The weird thing, is that simply defining a <Resources /> element slows down my webapp startup greatly. ============== Setup 1: server.xml --- <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="false" deployOnStartup="false"> <Context path="" docBase="../app/warfile.war"> <Resources /> </Context> </Host> --- Deploy time app: 180 seconds ============== Setup 2: server.xml --- <Host name="localhost" appBase="webapps" unpackWARs="true" autoDeploy="false" deployOnStartup="true"> </Host> --- Catalina/localhost/ROOT.xml --- <Context docBase="../app/warfile.war"> <Resources /> </Context> --- Deploy time app: 20 seconds ============== If I remove the Resources element, everything is fine in all scenario's (but then I cannot increase the cache size). Going through the code, I can't see what would be different about defining an empty Resources element or no Resources element, or what would be different in defining the webapp in server.xml or in a separate context file. Any insights and ideas are appreciated.
As an answer to your last question above, look here : http://tomcat.apache.org/tomcat-8.0-doc/config/context.html --> Defining a context --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
