Question : Tomcat PermGen space

In the installation guide of the application (Documentum Webtop) that we deployed on tomcat following is mentioned

"If you are using Apache Tomcat go to Properties/Java setting values of the service:
As a starting point, add the following settings:
-XX:MaxPermSize=128m;
-XX:PermSize=64m;
-XX:+CMSPermGenSweepingEnabled
-XX:+CMSClassUnloadingEnabled
"

I do not have Tomcat installed as a service. Can someone please let me know how and where to make these changes if tomcat is not installed as a service.

In /bin/catalina.bat, value of JAVA_OPTS and CATALINA_OPTS are the following

set JAVA_OPTS=%JAVA_OPTS% -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager -Djava.util.logging.config.file="%CATALINA_BASE%\conf\logging.properties"
 
set CATALINA_OPTS="-Xms512m -Xmx1024m"

 
Are changes required in any of these variables?

Answer : Tomcat PermGen space

you just need to specify the options you want to add. tomcats startup script will add what it needs

set JAVA_OPTS="%JAVA_OPTS% -XX:MaxPermSize=128m -XX:PermSize=64m -XX:+CMSPermGenSweepingEnabled -XX:+CMSClassUnloadingEnabled"

Random Solutions  
 
programming4us programming4us