Increasing or setting Java Heap Size in tomcat
by rajesh[ Edit ] 2008-07-18 15:40:51
To increase the heap memory size of java JVM for a tomcat server we have to follow the procedure
a) Edit /usr/sbin/starttomcat
b) Add Xms and Xmx entries as
system("./jsvc",
"-user","tomcat",
"-Xms512m",
"-Xmx512m",
"-cp","./bootstrap.jar",
"-Djava.endorsed.dirs=../common/endorsed",
"-debug","-outfile","../logs/catalina.out",
"-errfile","../logs/catalina.err","-verbose",
"org.apache.catalina.startup.Bootstrap","-security",
"$options");
c) restart tomcat