viviotech / lucee-installer

BitRock Installer XML config and files for the Lucee installers
http://lucee.viviotech.net/
9 stars 2 forks source link

Investigate CATALINA_OPTS in addition to or in place of JAVA_OPTS #57

Closed utdream closed 9 years ago

utdream commented 11 years ago

As suggested by Chris Blackwell on the Railo List:


Do not use JAVA_OPTS to pass arguments to tomcat, use CATALINA_OPTS

for an explanation of why, see -> http://www.wellho.net/mouth/2163_CATALINA-OPTS-v-JAVA-OPTS-What-is-the-difference-.html

basically, if you set -Xms1024m in JAVA_OPTS the java process that is spawned to restart tomcat also uses that amount of memory, so only use global options in JAVA_OPTS, not per process stuff which for tomcat should be placed in CATALINA_OPTS.

Chris


Investigate using CATALINA_OPTS in addition to or in place of JAVA_OPTS in default config in an effort to decrease the number of problems occurring during shutdown of the Railo server Tomcat instance. I imagine replacing JAVA_OPTS completely would make the JVM use default options (which are really tiny) during shutdown so may need to customize those as well to avoid other potential problems with memory during shutdown.

utdream commented 9 years ago

updating to CATALINA_OPTS in Lucee 4.5.1.022

utdream commented 9 years ago

https://github.com/utdream/CFML-Installers/wiki/Lucee-Installer-Release-Notes