Wednesday, March 28, 2012

Increasing JVM - For oacore R12

Dynamic – Without Auto Config:
Stop the Application server
Step 1: Edit opmn.xml file.
Location : $INST_TOP/ora/10.1.3/opmn/conf/
Backup the opmn.xml. Open opmn.xml
Search for string process-type=”oacore” module-id=”OC4J”
This search should lead you to below location
‘<’process-type id=”oacore” module-id=”OC4J” status=”enabled” working-dir=”$ORACLE_HOME/j2ee/home”‘>’ ‘<’category id=”start-parameters”‘>’ ‘<’data id=”java-options” value=”-server -verbose:gc -Xmx512M -Xms128M ……]
The default value for Maximum (-Xmx) and Minimum (-Xms) heap sizes are 512M and 128M respectively. Change the Xmx and Xms to the desired value.
Also change the values under ‘<’category id=”stop-parameters”‘>’.
Search for numprocs under process-type=”oacore” and change it to the desired value.
Step 2: Edit oc4j.properties file.
Location : ($INST_TOP/ora/10.1.3/j2ee/oacore/config)
Make an entry, under the heading “# Java Object Cache Configuration Parameters”
wrapper.bin.parameters=-Xms[Value]M -Xmx[Value]M -XX:NewSize=256M -XX:MaxNewSize=256M
These changes are not permanent and will be wiped off when you run autoconfig.
To make the changes permanent,
AutoCofig Method:
Change the variable oacore_nprocs oa_var=”s_oacore_nprocs to the desired value for number of JVM processes.
Change the Xmx and Xms values under the variable s_oacore_jvm_start_options and s_oacore_jvm_stop_options to the desired vaule. Run Auto config to make the changes effective.
Note: backup the context file before making the changes.

No comments: