Wednesday, July 2, 2008

How to Increase the OC4J JVM heap size in Oracle Applications R12

If you are getting OutofMemory Errors, Please follow the steps below to increase the JVM heap size.

1. Login as applmgr user to the Server hosting the applications

2. cd $ORA_CONFIG_HOME/10.1.3/opmn/conf

3. Edit the opmn.xml file

There are 3 OC4J instances in Oracle Applications R12 Version. They are oacore, oafm and forms. You need to change the respective OC4J instance JVM parameters.
For Example, you are getting outofmemory issue with the oacore OC4J instance and want to increase the JVM heap size, follow the steps below.

in opmn.xml, you have to update the "java-options" values under
category id="start-parameters" and
category id="stop-parameters" tags as shown below

1. category id="start-parameters"
data id="java-options" value="-server -verbose:gc -Xmx512M -Xms128M -XX:MaxPermSize=160M


2. category id="stop-parameters"
data id="java-options" value="-server -verbose:gc -Xmx512M -Xms128M -XX:MaxPermSize=160M

If you want to increase the MaxPermSize from 160M to 256M, then the updated line should look like

data id="java-options" value="-server -verbose:gc -Xmx512M -Xms128M -XX:MaxPermSize=256M
You have change this parameter at 2 places as mentioned above

4. Save the changes.

5. Reload the opmn config changes to get reflected using
$ADMIN_SCRIPTS_HOME/adopmnctl.sh reload

6. Verify whether the changes done above are reflected or not using the following command

ps -eaf|grep applmgr|grep oacore

[applmgr@lxs3er06 conf]$ ps -eaf|grep applmgr|grep oacore
applmgr 2020 1440 0 02:23 pts/2 00:00:00 grep oacore
applmgr 12252 12231 0 Jul01 ? 00:05:19 /data/R12VIS/apps/tech_st/10.1.3 /appsutil/jdk/bin/java -DCLIENT_PROCESSID=12252 -server -verbose:gc -Xmx512M -Xm s128M -XX:MaxPermSize=256M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB -X X:+UseParallelGC -XX:ParallelGCThreads=2 -Dcom.sun.management.jmxremote -Djava.s ecurity.policy=/data/R12VIS/apps/tech_st/10.1.3/j2ee/oacore/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -Doracle.security.jazn.confi g=/data/R12VIS/inst/apps/R12VIS_lxs3er06/ora/10.1.3/j2ee/oacore/config/jazn.xml -Doracle.ons.oraclehome=/data/R12VIS/apps/tech_st/10.1.3 -Doracle.home=/data/R12 VIS/apps/tech_st/10.1.3 -Doracle.ons.oracleconfighome=/data/R12VIS/inst/apps/R12 VIS_lxs3er06/ora/10.1.3 -Doracle.ons.clustername=default -Doracle.ons.instancena me=R12VIS_lxs3er06.lxs3er06.solutions.glbsnet.com -Dopmn.compatible=904 -Doracle .ons.indexid=oacore.default_group.1 -Doracle.ons.uid=765541316 -Doracle.oc4j.ins tancename=oacore -Doracle.oc4j.islandname=default_group -Doracle.opmn.routingid= g_rt_id -DOPMN=true -jar oc4j.jar -config /data/R12VIS/inst/apps/R12VIS_lxs3er06 /ora/10.1.3/j2ee/oacore/config/server.xml -properties -out /data/R12VIS/inst/app s/R12VIS_lxs3er06/logs/ora/10.1.3/opmn/oacorestd.out -err /data/R12VIS/inst/apps /R12VIS_lxs3er06/logs/ora/10.1.3/opmn/oacorestd.err -ports default-web-site:ajp: 21500,rmi:20000,jms:23000

2 comments:

Unknown said...

The time you spend alone with God will transform your character and increase your devotion. Then your integrity and godly behavior in an unbelieving world will make others long to know the Lord. See the link below for more info.


#increase
www.ufgop.org

Unknown said...

Thanks for sharing this blog with us. I really appreciated your effort to published this article.If you have time, please visit my site @ www.imarksweb.org


Kz