Wednesday 28 August 2013

JDeveloper + Weblogic Error PermGen space

When I was starting my Weblogic I got an Error:
The WebLogic Server encountered a critical failure
Reason: PermGen space
The solution can be found on the oracle Forums here:
https://forums.oracle.com/thread/881103

or you can Follow this guide:
You must install JRockit onto your computer.
Here is a guide for linux:
JRockit Installation on Linux

Once JRocket has been installed

You should change the "setDomainEnv" file. Which can be found in
Windows under"
<JDEV_HOME>/jdeveloper/system/system11.1.1.0.31.51.88/DefaultDomain/bin/setDomainEnv.cmd
in Linux:
 cd ~/.jdeveloper/system11.1.1.0.31.51.88/DefaultDomain/bin/setDomainEnv.sh

Note: the "system11.1.1.0.31.51.88" is variable and will change depending on what version of JDeveloper you are running.

Once inside there, you must find the lines where they are setting "JAVA_HOME"

There is a comment
"We need to reset the value of JAVA_HOME to get it shortened AND"
What you can do, is after that set JAVA_HOME to where you installed JRockit.
Mine was:
JAVA_HOME="/u01/app/oracle/middleware/jrockit-jdk1.6.0_45-R28.2.7-4.1.0"
# We need to reset the value of JAVA_HOME to get it shortened AND
# we can not shorten it above because immediate variable expansion will blank it
This will set your Weblogic to use JRockit.

#bearMan out

No comments:

Post a Comment