« June 2007 | Main | March 2008 »
Somtimes after multiple deployments of an application in a JBoss AS instance it's possible that the server instance throws an error of type java.lang.OutOfMemoryError: : PermGen space .
to fix that problem, we have to patch the $JBOSS_HOME/bin/run.sh file with this proposition:
- firstly, we have to find the variable JAVA_OPTS in the file
- then we have to enhance the variable like this:
JAVA_OPTS="$JAVA_OPTS -Xms128m -Xmx512m -XX:CMSPermGenSweep:ngEnabled
-XX:MaxPermSize=128m -Dsun.rmi.dgc.client.gcInterval=3600000
-Dsun.rmi.dgc.server.gcInterval=3600000 -Djava.net.preferIPv4Stack=true"
The PermGenSpace of a JBoss AS instance has a standard value of 64m, therefore breaks down often the server instance.
This page contains all entries posted to Serge Pagop's Weblog in January 2008. They are listed from oldest to newest.
June 2007 is the previous archive.
March 2008 is the next archive.
Many more can be found on the main index page or by looking through the archives.