Although that works, it's a dirty shortcut :-).
Originally Posted by someone316
Your change to /etc/bash.bashrc should work if you add
Without "export" the variable will not be visible. If you, or any other user, are starting/stopping tomcat then ~/.bashrc is a better place in my opinion.
Just one more note, you can "quickly" test a setup by running tomcat with the command
$> CATALINA_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=512m" catalina.sh run
$> export CATALINA_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=512m"
$> catalina.sh run