Increasing the size  of memory space for OC4J 10.1.3 manually


To Increase the memory space by manually updated opmn.xml and re-start the oc4j instance

For 10.1.3, you need to modify $ORACLE_HOME\opmn\conf\opmn.xml manually. Example follows, simply add both
these to your startup options for the oc4j instance you are deploying/redeploying to.

-XX:PermSize=128m -XX:MaxPermSize=256m


Add the following parameter for your OC4J instance start up parameters

<data id="java-options" value="-Xms512m -Xmx750m -XX:PermSize=128m -XX:MaxPermSize=256m ......


Your instance config will look something like this with the changes

    <process-type id="support" module-id="OC4J" status="enabled">
        <category id="start-parameters">
          <data id="java-options" value="-server$
    ORACLE_HOME/j2ee/support/config/java2.policy -Djava.awt.headless=true -Dhttp.
    webdir.enable=false  -Xms512m -Xmx750m
-XX:PermSize=128m -XX:MaxPermSize=256m"/>
         <category id="stop-parameters">
           <data id="java-options" value="$ORAC
    LE_HOME/j2ee/support/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.
        <start timeout="600" retry="2"/>
        <stop timeout="120"/>
        <restart timeout="720" retry="2"/>
        <port id="default-web-site" range="12501-12600" protocol="ajp"/>
        <port id="rmi" range="12401-12500"/>
        <port id="jms" range="12601-12700"/>
        <process-set id="default_group" numprocs="1"/>