按照catalina.sh文档中的注释,CATALINA_OPTS(可选)是在执行“开始”,“运行”或“调试”命令时使用的Java运行时选项。在此处包含全部选项,而不是在JAVA_OPTS中包含全部选项,这些选项只能由Tomcat自己使用,而不能由中止进程,版本命令等使用。示例包括堆大小,GC日志记录,JMX端口等。html
相关主题:.net
CATALINA_OPTS v JAVA_OPTS - What is the difference?debug
http://www.wellho.net/mouth/2163_CATALINA-OPTS-v-JAVA-OPTS-What-is-the-difference-.html调试
CATALINA_OPTS (Optional) Java runtime options used when the "start", "run" or "debug" command is executed. Include here and not in JAVA_OPTS all options, that should only be used by Tomcat itself, not by the stop process, the version command etc. Examples are heap size, GC logging, JMX ports etc.日志
JAVA_OPTS (Optional) Java runtime options used when any command is executed. Include here and not in CATALINA_OPTS all options, that should be used by Tomcat and also by the stop process, the version command etc. Most options should go into CATALINA_OPTS.htm