Oracle App Server 10.1.3 Ram

May 14th, 2008

I ran into a situation today where I needed to increase the amount of ram (and perm gen) space a server was able to use.  This server is running oracle application server 10.1.3.  FYI the Error was java.lang.OutofMemory Perm Gen.

To do this, first off, I stopped opmn using the command:

opmnctl stopall

Secondly I edited the opmn.xml file in the opmn/conf folder and added the following variables to the java start up parameters:

-XX:MaxPermSize=512m -Xmx1024m

*** ful code ***

<ias-component id=”OC4J”>
            <process-type id=”home” module-id=”OC4J” status=”enabled”>
               <module-data>
                  <category id=”start-parameters“>
<data id=”java-options” value=”-server -XX:MaxPermSize=512m -Xmx1024m -Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Dj
ava.awt.headless=true -Dhttp.webdir.enable=false”/>

After that I restarted opmn and I had enough ram to support the massive app I was working on.

Leave a Reply

You must be logged in to post a comment.