Archive

Archive for September, 2014

Changing the heap size of the OMS in EM12c

September 3, 2014 Leave a comment

em12c

2 ways to do it 

1. via emctl  increasing it to 4GB 

emctl set property -name JAVA_EM_MEM_ARGS
-value “-Xms256m -Xmx4096m -XX:MaxPermSize=768M -XX:+UseConcMarkSweepGC
-XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled
-XX:CompileThreshold=8000 -XX:PermSize=128m”

modify only the ‘-Xmx’ parameter to change the heap size for JAVA.
Leave all other parameters at their default,
including the defaults for the values of the ‘-Xms’ and/or ‘-XX’ parameters.

Stop and start OMS

emctl stop oms -all
emctl start oms

check the property 

emctl get property -name “JAVA_EM_MEM_ARGS”

 

2. via script startEMServer.sh script changing it to 4G 

cd /u01/app/oracle/middleware/oms12c/gc_inst/user_projects/domains/GCDomain/bin
cp startEMServer.sh startEMServer.sh.bak
edit startEMServer.sh

look for

if [ “${SERVER_NAME}” != “EMGC_ADMINSERVER” ] ; then
USER_MEM_ARGS=”-Xms256m -Xmx1024m -XX:MaxPermSize=612M -XX:-DoEscapeAnalysis -XX:+UseCodeCacheFlushing
-XX:ReservedCodeCacheSize=100M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled”
if [ “${JAVA_VENDOR}” = “Sun” ] ; then
if [ “${PRODUCTION_MODE}” = “” ] ; then
USER_MEM_ARGS=”-Xms256m -Xmx1024m -XX:MaxPermSize=612M -XX:-DoEscapeAnalysis -XX:+UseCodeCacheFlushing
-XX:ReservedCodeCacheSize=100M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled
-XX:CompileThreshold=8000 -XX:PermSize=128m”

change to

if [ “${SERVER_NAME}” != “EMGC_ADMINSERVER” ] ; then
USER_MEM_ARGS=”-Xms256m –Xmx4096m -XX:MaxPermSize=768M -XX:-DoEscapeAnalysis -XX:+UseCodeCacheFlushing
-XX:ReservedCodeCacheSize=100M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled”
if [ “${JAVA_VENDOR}” = “Sun” ] ; then
if [ “${PRODUCTION_MODE}” = “” ] ; then
USER_MEM_ARGS=”-Xms256m –Xmx4096m -XX:MaxPermSize=768M -XX:-DoEscapeAnalysis -XX:+UseCodeCacheFlushing
-XX:ReservedCodeCacheSize=100M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled
-XX:CompileThreshold=8000 -XX:PermSize=128m”

Stop and start OMS

emctl stop oms -all
emctl start oms

Check that your OMS has started up with the correct memory settings:

grep “JAVA Memory arguments” /u01/app/oracle/middleware12.1.0.4/oms12c/gc_inst2/user_projects/domains/GCDomain/servers/EMGC_OMS1/logs/EMGC_OMS1.out

JAVA Memory arguments: -Xms256m –Xmx4096m -XX:MaxPermSize=768M -XX:-DoEscapeAnalysis -XX:+UseCodeCacheFlushing -XX:ReservedCodeCacheSize=100M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled -XX:CompileThreshold=8000 -XX:-DoEscapeAnalysis -XX:+UseCodeCacheFlushing -XX:ReservedCodeCacheSize=100M -XX:+UseConcMarkSweepGC -XX:+UseParNewGC -XX:+CMSClassUnloadingEnabled

 

 

 

Advertisements
Categories: Uncategorized