Tomcat 6 Heap Size - Is this correct?
问题 I am running multiple tomcats on a Red Hat box and I would like to configure separate heap size for each of them (some instances use more memory). Can I set the heap size min/max bt entering the following into the catalina.sh file: CATALINA_OPTS="-Xms64m -Xmx256m" Do I need add 'export'? i.e. export CATALINA_OPTS="-Xms64m -Xmx256m" 回答1: Best practice is to put the setting of environment variables in a file named setenv.sh / .bat in the bin folder. The catalina.sh script has logic to call into