java - TOMCAT 7, Can't change the heap size -
i have set heap size of tomcat 7 adding boot script:
export catalina_opts="-xms1024m -xmx248m"
i change /etc/init.d/tomcat7 :
if [ -z "$java_opts" ]; java_opts="-djava.awt.headless=true -xmx2048m -xms1024m" fi
i reboot computer , restart tomcat:
service tomcat7 restart
and verify $catalina_opts works:
> echo $catalina_opts -xms1024m -xmx2048m
but when go tomcat manager, note heap has not changed.
free memory: 38.02 mb total memory: 123.75 mb max memory: 123.75 mb
please, need this.
check setenv.sh
in tomcat/bin
, according manual should right place put params.
another option, depend on os tomcat package, may config param overrided in /etc/conf.d/tomcat/
or /etc/tomcat
. check init script , catalina.sh find settings overrided.
btw if run ps -ef | grep tomcat
should see full command line arguments: may give idea of how init script build command, , can investigate params set.
Comments
Post a Comment