Increasing or setting Java Heap Size in tomcat

by rajesh 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

Tagged in:

13691
like
1
dislike
2
mail
flag

You must LOGIN to add comments