tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From André Warnier (tomcat) ...@ice-sa.com>
Subject Re: Tomcat 8.5 slowdown with Resources element
Date Mon, 20 Jun 2016 10:20:02 GMT
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: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message