tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Darius D." <>
Subject Re: parallel webapp initialization
Date Sun, 09 Oct 2011 19:25:38 GMT

Alexander Knöller wrote:
> Hello mailing list.
> We use a single tomcat instance (soon switching from 5.5.23 to 7.x) with
> 24 webapps. Each webapp is based on spring and hibernate doing a lot of
> I/O during initialization.
> Tomcat is often restarted which causes long downtimes.  As far as i can
> see the tomcat initializes its wepapps sequentially. So despite the fact,
> that our tomcat-intance runs on a 8 core linux system, tomcat seems to use
> a single thread to initalize the webapps.

I'd love to see such patch as well, we have ~20 webaps with a total hundreds
of megabytes of WAR files and full tomcat restart takes like 2 minutes on 24
thread machine with SSD storage subsystem. 

Some tuning options are needed as well, as webapp initialization can be IO
bound on some storage so having more threads can actually make it slower (
once disk heads start moving... ). Good and safe default would be 1 init
thread and max bound by cpus available in the system ?



View this message in context:
Sent from the Tomcat - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message