Enabling Multithreaded WebApp Loading

You can adjust the Tomcat configuration by using the multithreaded webapp loading. This can help you reduce the Platform startup time.

The multithreaded webapp loading is enabled by default by the tomcat.startStopThreads parameter. This parameter sets:

  • the number of threads this engine uses to start child Host elements in parallel

  • the number of threads that the Host uses to start the child Context elements in parallel; The same thread pool is used to deploy new Contexts if automatic deployment is used.

The special value of 0 (used as default) results in the value of Runtime.getRuntime().availableProcessors() being used. Negative values result in Runtime.getRuntime().availableProcessors() + value being used unless this is less than 1 in which case 1 thread will be used. For more information, see https://tomcat.apache.org/tomcat-8.0-doc/config/host.htmlInformation published on non-SAP site.