Increasing or setting Java Heap Size in tomcat - Tomcat Views : 9360
Tagged in : Tomcat
1 2
Send mail
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
By rajesh, On - 2008-07-18



    Login to add Comments .