Forum archive
Cannot change java heap size allocation for tomcat
I have a web app that eats a little above 512mb.
> echo $CATALINA_OPTS -server -Xms384M -Xmx512M -XX:MaxPermSize=256M
I tried increasing this but it does not reflect anything...
export CATALINA_OPTS = "-server -Xms1024M -Xmx1024M -XX:MaxPermSize=256M" > echo $CATALINA_OPTS -server -Xms384M -Xmx512M -XX:MaxPermSize=256M
How to change this settings? Is there some kinda override in our turnkey tomcat installation?
I don't have this appliance at hand, but configuration of these parameters are always set in a file. In tomcat 6 is /etc/default/tomcat6 but I suppose you're using tomcat5, so look for something like /etc/tomcat5/*. Look for the configuration file and where it says JAVA_OPTS= there's where you have to make the change. That way is going to be a permanent change even if you boot your VM.
Also try not leaving spaces between CATALINA_OPTS and the values:
export CATALINA_OPTS="-server -Xms1024M -Xmx1024M -XX:MaxPermSize=256M"Sorry if it's too late for this info.