CATALINA_OPTS

  按照catalina.sh文档中的注释,CATALINA_OPTS(可选)是在执行“开始”,“运行”或“调试”命令时使用的Java运行时选项。在此处包含所有选项,而不是在JAVA_OPTS中包含所有选项,这些选项只能由Tomcat本身使用,而不能由停止进程,版本命令等使用。示例包括堆大小,GC日志记录,JMX端口等。

 

相关主题:

CATALINA_OPTS v JAVA_OPTS - What is the difference?

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.

posted on 2019-11-12 14:56  王.小辉  阅读(4277)  评论(0编辑  收藏  举报

导航