4.2 JVM Tuning

This section of the document provides JVM optimization for Oracle Banking Trade Finance Solution.

Basically the JAVA minimum and maximum heap size needs to be reset for 32 and 64 bit environments. Both the minimum and maximum heap size is set to 1.5GB and 4GB in case of 32 bit and 64 bit environments respectively.

How to find whether the JVM is 32bit or 64bit?

Go to $JAVA_HOME/bin directory. Check java version using command ./java –d64 –version 64 bit JVM shows the version details where as 32bit throws an error.

How to modify the JVM heap parameters?

To change the JVM heap parameters create a file setUserOverrides.sh under domain FCUBSCL in both servers. This file should be created in “$WL_HOME/user_projects/domains/$WLS_DOMAIN/bin” in both the servers. Paste below contents of USER_MEM_ARGS variable accordingly to override the standard memory arguments passed to java for SUN JDK.

32 bit JDK

USER_MEM_ARGS="-

Dorg.apache.xml.dtm.DTMManager=org.apache.xml.dtm.ref.DTMManagerDefault

-

Dorg.apache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.

parsers.XML11Configuration -Dweblogic.threadpool.MinPoolSize=100 -

Dweblogic.threadpool.MaxPoolSize=100 –Xms1536M –Xmx1536M -

XX:MaxPermSize=256m -server -XX:+UseParallelOldGC -

XX:ParallelGCThreads=4"

export USER_MEM_ARGS

64 bit JDK

USER_MEM_ARGS="-

Dorg.apache.xml.dtm.DTMManager=org.apache.xml.dtm.ref.DTMManagerDefault

-Dorg.a

pache.xerces.xni.parser.XMLParserConfiguration=org.apache.xerces.parser

s.XML11Configuration -Dweblogic.threadpool.MinPoolSize=100 -

Dweblogic.threadpool.MaxPoolSize=100 –Xms8g –Xmx8g –Xmn4g -server

-XX:+UseParallelOldGC -XX:ParallelGCThreads=4"

export USER_MEM_ARGS

Note:

Take a backup of the files before modifying the same.