Saturday, June 28, 2008

Guidelines to setup the JVM in Apps Ebusiness Suite R12

For Oracle Applications 11i and R12.

Goal:

This is the general setup in apps has to be done after the installation. So that we can avoid performance issues in applications during heavy user load.


Solution:


How to increase the number oacore process type(JVM) and required memory:

Name of the file: opmn.xml
Location in R12:$INST_TOP/apps/SID_HOSTNAME/ora/10.1.3/opmn/conf/opmn.xml

Location in 11i:$IAS_ORACLE_HOME/Apache/Jserv/etc/jserv.conf
$IAS_ORACLE_HOME/Apache/Jserv/etc/jserv.properties

In this document i'm telling you how to increase JVM in R12.

Go to $INST_TOP/apps/SID_HOSTNAME/ora/10.1.3/opmn/conf/

Take a backup of opmn.xml file before editing,

A)Open the opmn.xml file and go to line no-128 and increase

numprocs=”4” -- (for 8 cpus)

If you have 6 cpus in server you can increase this JVM upto “3”. So depends on the cpu configuration you increase it.

B)Now we have increased the number of JVM only we need to increase the memory also for
compilation during user requests.

In the same file go to line no-114

FROM: -server -verbose:gc -Xmx512M -Xms128M -XX:MaxPermSize=160M -

XX:NewRatio=2 -XX:+PrintGCTimeStamps

As per the metalink document 362851.1 need to increase

Xms128M to Xms256M

Here nproc is number oc4j instance.

So to know how much memory has to increase multiply Xms with nproc.

Xms X nproc = max memory

And make sure that your application tier memory having that much free size.

Now I have 4 nproc and 256 for Xms, So I need to increase Xmx512 to Xmx1024


TO:

server -verbose:gc –Xmx1024M -Xms256M -XX:MaxPermSize=256M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+PrintGCDetails

For reference:

Xms x nproc = max memory.

The max allocation of memory to the oc4j memory allocated by the Xmx parameter

Nprocs is the number of ocj4 instances

multiply the two together you will get the max memory given to OC4J support


Note: Don’t run autoconfig bounce the all application tiers.