|
From: Rob G. <ro...@we...> - 2006-10-05 17:32:12
|
Socketeers,
A quick heads up on adjusting the heap size for the JVM in tomcat.
1) vi /path/to/tomcat/bin/catalina.sh
2) At the top of the file, simply add some or all of the following
parameters, here's an example:-
JAVA_OPTS="-server -Xms1500m -Xmx1500m -XX:NewSize=400m -XX:MaxNewSize=400m
-XX:PermSize=128m -XX:MaxPermSize=196m -verbose:gc -XX:+PrintGCTimeStamps -XX:+PrintGCDetails
-XX:+UseConcMarkSweepGC -XX:+UseParNewGC"
3) Restart tomcat, job done.
4) To check tomcat has picked these up, do:-
ps -ef | grep java
cheers
Rob
|