Configure Tomcat for production deploymentTomcat is a great J2EE server and runs thousands of sites on the net. Unfortunately, there are no hard rules to adjust for "the best" production deployment settings, but here are the settings that worked the best in our experience with Razuna and Tomcat. Use a front end web serverThought, Tomcat can be used to serve Razuna directly, we encourage the use of a front end web server like IIS (best), Apache (better) or Nginx (the best). We have written dedicated pages how to do this with Apache and Nginx. Memory & Garbage Collection SettingsWe already have a dedicated site for Tomcat memory setting, but for production environment you should set the Maximum Heap Space to around 60% of your total RAM. The rule is to use as less as possible. So, say you have 4GB of total RAM your memory settings would be (with a 60% rule and a bit less): Tomcat APRFor optimal performance configuring and installing APR for Tomcat is a absolute must. We encourage you to read the installation note on the dedicated APR Tomcat site. Tomcat Connector settingsAfter many months of trial and error we have found the following connector setting do work the best with Razuna:
|
Useful Links Subpages |
Labels:
None
Add Comment