https://bz.apache.org/bugzilla/show_bug.cgi?id=66507
Bug ID: 66507 Summary: Catalina version command not honoring JAVA_OPTS variable Product: Tomcat 9 Version: 9.0.x Hardware: All OS: All Status: NEW Severity: minor Priority: P2 Component: Catalina Assignee: dev@tomcat.apache.org Reporter: eric.hamil...@ngc.com Target Milestone: ----- The catalina version command is ignoring the JAVA_OPTS variable, in contrast to the variable documentation. This is observed in both the .sh and .bat scripts. Documentation of JAVA_OPTS: "... 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. ..." Linux use case: export JAVA_OPTS=-XshowSettings catalina.sh version Windows use case: SET JAVA_OPTS=-XshowSettings catalina.bat version Observed the catalina version command did not output additional JVM settings information. Expected the catalina version command to honor the configured JAVA_OPTS variable. Suggested catalina.sh fix: elif [ "$1" = "version" ] ; then "$_RUNJAVA" "$JAVA_OPTS" \ -classpath "$CATALINA_HOME/lib/catalina.jar" \ org.apache.catalina.util.ServerInfo else Suggested catalina.bat fix: :doVersion %_EXECJAVA% %JAVA_OPTS% -classpath "%CATALINA_HOME%\lib\catalina.jar" org.apache.catalina.util.ServerInfo goto end -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@tomcat.apache.org For additional commands, e-mail: dev-h...@tomcat.apache.org