000028865 - KB-1102 - OutOfMemory Error: PermGen Space

Document created by RSA Customer Support Employee on Jun 14, 2016Last modified by RSA Customer Support Employee on Apr 21, 2017
Version 2Show Document
  • View in full screen mode

Article Content

Article Number000028865
Applies ToAffected Versions: 3.X; 4.X
ResolutionThis error indicates that the Java's fixed block for loading class files has been exceeded. The Java parameter MaxPermSize needs to be increased, in addition to any argument that is used to set the heap size.

To resolve the OutOfMemory Error: PermGen Space use the following:


Version 3.X
1) Open $CATALINA_HOME/bin/catalina.sh
2) Search for the following in catalina.sh:
 
# Set juli LogManager if it is present
if [ -r "$CATALINA_HOME"/bin/tomcat-juli.jar ]; then
JAVA_OPTS="$JAVA_OPTS "source="1.5" target="1.5" -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
fi

3) Add the following line just before the above lines:
 
JAVA_OPTS="$JAVA_OPTS" -XX:MaxPermSize=256M

The modified file should then look like this:
 
JAVA_OPTS="$JAVA_OPTS"-XX:MaxPermSize=256M
# Set juli LogManager if it is present
if [ -r "$CATALINA_HOME"/bin/tomcat-juli.jar ]; then
JAVA_OPTS="$JAVA_OPTS "source="1.5" target="1.5" -Djava.util.logging.manager=org.apache.juli.ClassLoaderLogManager
fi

4) Save the file
5) Restart the server.
sudo service aveksa_server restart
or
use the “Restart CM” button in the UI
 

6) Re-try the failing operation


Version 4.X
1) Log in to the machine as the oracle user
2) Change directories to /home/oracle
3) Edit the setDeployEnv.sh file and modify the following line:
 
export JAVA_OPTS="-Xmx2048m -Djava.awt.headless=true -XX:MaxPermSize=256M"

4) Increase the MaxPermSize to 512M
5) Stop and restart the aveksa server
 
sudo service aveksa_server restart
 

6) Re-try the failing operation
 

Attachments

    Outcomes