Jave 1.5 JVM Settings:
----------------------

Windows:

set JAVA_OPTS=%JAVA_OPTS%  -Xms512m  -Xmx1024m  -XX:PermSize=32m  -XX:MaxPermSize=128m  -Xss2m
set JAVA_OPTS=%JAVA_OPTS%  -XX:+UseConcMarkSweepGC  -XX:+CMSClassUnloadingEnabled  -XX:+CMSPermGenSweepingEnabled

Linux:

JAVA_OPTS="$JAVA_OPTS  -Xms512m  -Xmx1024m  -XX:PermSize=32m  -XX:MaxPermSize=128m  -Xss2m "
JAVA_OPTS="$JAVA_OPTS  -XX:+UseConcMarkSweepGC  -XX:+CMSClassUnloadingEnabled  -XX:+CMSPermGenSweepingEnabled "

