
Originally Posted by
someone316
Add number 2 in your catalina.sh
2. CATALINA_OPTS="-Xms128m -Xmx128m"
Although that works, it's a dirty shortcut :-).
Your change to /etc/bash.bashrc should work if you add
Code:
export CATALINA_OPTS="..."
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
Code:
$> CATALINA_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=512m" catalina.sh run
or
Code:
$> export CATALINA_OPTS="-Xms128m -Xmx512m -XX:MaxPermSize=512m"
$> catalina.sh run
Bookmarks