I have tomcat 6 server on windows xp ,And I start tomcat through console i.e. using startup.bat.
AFAIK catalina.bat
file is for windows so I am changing bat file for memory management.I don't have tomcat configuration window.
Now I want to increase its heap size so My question is should I extend the existing JAVA_OPTS
in catalina.bat file i.e.
set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties" -Xms1024m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=128m
Or should I create new environment variable in catalina.bat file i.e.
set JAVA_OPTS=-Xms1024m -Xmx1024m -XX:PermSize=256m -XX:MaxPermSize=128m
And Is this the correct way to do it?
Please guide.
and I am able to see current heap size in Probe but not able to see existing perm size so What is the default value for perm size?
Edit:
following parameters help any?
-XX:+UseConcMarkSweepGC -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled