Links

   Quran Explorer - Interactive Audio Recitations & Translations

Wednesday, September 1, 2010

Fixing Tomcat PermGem Space Error

Tomcat PermGem Space error:

How to fix it ?

1) Find where is Cataline.sh located. We need to make some changes in “catalina.sh” file.
P.S Cataline.sh is located at /tomcat folder/bin/catalina.sh

2) Assign following line to JAVA_OPTS variable and add it into catalina.sh file.
JAVA_OPTS="-Djava.awt.headless=true -Dfile.encoding=UTF-8
-server -Xms1536m -Xmx1536m
-XX:NewSize=256m -XX:MaxNewSize=256m -XX:PermSize=256m
-XX:MaxPermSize=256m -XX:+DisableExplicitGC"

Java Opts

-Xms
initial java heap size
-Xmx
maximum java heap size
-Xmn
the size of the heap for the young generation

-server starts Tomcat with the Server JVM

3 comments:

Feel free to leave a comment