Addendum for Manual for Administrators: Solution for slow start of Tomcat 7.0.42 and newer
Using Apache Tomcat 7.0.42 and newer
This addendum complements:
PDF: FirstSpirit Manual for Administrators
Chapters: 4.5.3 and 4.5.4 "Servlet Engine Tomcat"
Tomcat 7.0.42 and newer is blocked during the startup process for about 10 minutes when file fs-webrt.jar is added to its common classpath. The slow startup can be observed in tomcat/log/catalina.out as follows:
Nov 04, 2014 10:46:51 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deploying web application directory /opt/apache-tomcat-7.0.55/webapps/fs5preview
Nov 04, 2014 10:49:57 AM org.apache.catalina.startup.HostConfig deployDirectory
INFORMATION: Deployment of web application directory /opt/apache-tomcat-7.0.55/webapps/fs5preview has finished in 186,028 ms
Open the following file of the Tomcat installation in a text teditor:
Locate the following property:
Add the following string using the delimiter character , (comma) to separate it from already existing values:
Now the deployment should be completed after about 2 seconds for each fs5-WebApp.