Bug#956804: tomcat9: No way to set CATALINA_OPTS as catalina.sh environment variable

Emmanuel Bourg ebourg at apache.org
Tue Nov 24 00:02:09 GMT 2020


Le 2020-04-15 14:35, Radosław Józwik a écrit :

> there is no way to set CATALINA_OPTS environment variable to be used
> by catalina.sh
> startup script. As described in catalina.sh source:
> 
> #   CATALINA_OPTS   (Optional) Java runtime options used when the 
> "start",
> #                   "run" or "debug" command is executed.
> 
> It is working in tomcat8 package from Debian 9 by setting CATALINA_OPTS
> in /etc/default/tomcat8.

Hi Radosław, you should use JAVA_OPTS instead of CATALINA_OPTS in 
/etc/default/tomcat9 as documented in the file. I don't think 
CATALINA_OPTS has ever been intended to be supported in 
/etc/default/tomcat<n>.

Emmanuel Bourg



More information about the pkg-java-maintainers mailing list