19 January 2015
Deal with java.lang.OutOfMemoryError: PermGen space errors is always tricky. Most of the times it's something related to the chosen JVM, probably not supported for the hosting OS (for example, using a 32bits JVM in a 64bits OS is a typical issue).
Here I provide two interesting ways to check the JVM configuration:
For example, perhaps we could want to increase the PermSize, so we edit the <Domain dir >/ <Server Name >/bin/setDomainEnv.sh to add something like this in the beginning:
# USER_MEM_ARGS - The variable to override the standard memory arguments
# passed to java.
USER_MEM_ARGS="-Xms1024m -Xmx1024m -XX:CompileThreshold=8000 -XX:PermSize=256m"
export USER_MEM_ARGS
Now it's time to reboot the weblogic and check everything again using the same commands I showed previously.
More info: - Invoking WLST - Getting Runtime Information - WLST Scripting Introduction