set catalina opts in tomcat configuration
tomcat
Solution
Place the following in `catalina.sh` (below the documentation)
export CATALINA_OPTS="-Dfoo=foo -Dbar=bar"
Problem
Hi i set parameters for tomcat in configuration window on tab java and field java options. I'd like add to configuration to catalina_opts is there a way how to do it?? In that field i have ``` -Dcatalina.home=d:\apache-tomcat-7.0.23 -Dcatalina.base=d:\apache-tomcat-7.0.23 -Djava.endorsed=d:\apache-tomcat-7.0.23\endorsed -Djava.io.tmpdir=d:\apache-tomcat-7.0.23\temp -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file=d:\apache-tomcat-7.0.23\conf\logging.properties -XX:MaxPermSize=256m ``` Edit: 22.06.2012 12:26 I want add this parameters ``` -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.port=8777 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Djava.rmi.server.hostname=192.168.1.1 ``` Edit: 22.06.2012 12:51 I put these parameters directly into the field "Java options" and it works, not sure why it didn't work the 1st time.