On 23 December 2016 02:13:56 GMT+00:00, Jesse Barnum <jessebar...@gmail.com> 
wrote:
>
>> On Dec 22, 2016, at 11:31 AM, Christopher Schultz
><ch...@christopherschultz.net> wrote:
>> 
>> There's 7.0.73 but it shouldn't make too much of a difference. I just
>> wanted to make sure you weren't running 7.0.1-RC or some weird thing
>> that's ages old.
>> 
>> In Tomcat 7 there is a setting on the <Engine> component called
>> "startStopThreads"[1]. The default is 1 which means that a single
>> thread will be used to start/stop applications during
>> startup/shutdown, so the behavior you are seeing is expected.
>> 
>> If you want to use more threads, then you'll need to add/adjust that
>> setting. Something like this:
>> 
>> server.xml
>> - ----------
>> 
>> ...
>>   <Engine name="Catalina" defaultHost="localhost"
>>      startStopThreads="6">
>>   ...
>>   </Engine>
>> ...
>> 
>> That setting should use 6 threads and start/stop all your
>applications
>> simultaneously.
>> 
>> - -chris
>
>I have 13 web apps installed, and I changed the startStopThreads to 15.
>It did not seem to make the application launch any faster. Looking at
>the startup messages like this:

startStopThreads only applies to the immediately nested component. So using the 
setting on the Engine will try to start your one host in parallel.  Not 
helpful. Try moving that setting to the Host.

Mark

>
>Dec 23, 2016 1:59:28 AM org.apache.catalina.core.StandardService
>startInternal
>INFO: Starting service Catalina
>
>Dec 23, 2016 1:59:55 AM org.apache.catalina.startup.HostConfig
>deployDescriptor
>INFO: Deployment of configuration descriptor
>/etc/tomcat7/Catalina/localhost/PaypalCallbacks.xml has finished in
>26,514 ms
>
>Dec 23, 2016 2:00:00 AM org.apache.catalina.startup.HostConfig
>deployDescriptor
>INFO: Deployment of configuration descriptor
>/etc/tomcat7/Catalina/localhost/cyber.xml has finished in 4,973 ms
>
>Dec 23, 2016 2:00:03 AM org.apache.catalina.startup.HostConfig
>deployDescriptor
>INFO: Deployment of configuration descriptor
>/etc/tomcat7/Catalina/localhost/ROOT.xml has finished in 3,514 ms
>
>Dec 23, 2016 2:00:03 AM org.apache.catalina.startup.HostConfig
>deployDescriptor
>INFO: Deployment of configuration descriptor
>/etc/tomcat7/Catalina/localhost/manager.xml has finished in 188 ms
>
>Dec 23, 2016 2:00:03 AM org.apache.catalina.startup.HostConfig
>deployDescriptor
>INFO: Deployment of configuration descriptor
>/etc/tomcat7/Catalina/localhost/host-manager.xml has finished in 186 ms
>
>Dec 23, 2016 2:00:16 AM org.apache.catalina.startup.HostConfig
>deployDescriptor
>INFO: Deployment of configuration descriptor
>/etc/tomcat7/Catalina/localhost/360Store.xml has finished in 12,367 ms
>
><etc…>
>
>It seems that the clock time of each message is equal to the sum of all
>of the startup times, which is not what I would expect if it were using
>multiple threads.
>
>Looking at the documentation for this attribute close, I see this:
>
>> The number of threads this Engine will use to start child Host
><https://tomcat.apache.org/tomcat-7.0-doc/config/host.html> elements in
>parallel
>
>Do I need to configure one webapp per Host element in order to utilize
>multiple threads? I just have a single Host element.
>
>—Jesse Barnum, President, 360Works



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to