Production configuration in Tomcat
From VYRE
In a production environment it is recommended you configure Tomcat 5.5 for optimal performance.
The following is an example on how to configure the JSP servlet in Tomcats /conf/web.xml to not check for changes in JSP files and compile them for performance in stead of ease of debugging.
<servlet> <servlet-name>jsp</servlet-name> <servlet-class>org.apache.jasper.servlet.JspServlet</servlet-class> <init-param> <param-name>fork</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>xpoweredBy</param-name> <param-value>false</param-value> </init-param> <init-param> <param-name>development</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>genStrAsCharArray</param-name> <param-value>true</param-value> </init-param> <init-param> <param-name>classdebuginfo</param-name> <param-value>false</param-value> </init-param> <load-on-startup>3</load-on-startup> </servlet>
We also recommend for production environments to configure the default servlet in Tomcat as follows:
<servlet> <servlet-name>default</servlet-name> <servlet-class>org.apache.catalina.servlets.DefaultServlet</servlet-class> <init-param> <param-name>debug</param-name> <param-value>0</param-value> </init-param> <init-param> <param-name>listings</param-name> <param-value>false</param-value> </init-param> <load-on-startup>1</load-on-startup> </servlet>
