Increase -XX:MaxPermSize and number of JVMs for oacore
1. Shutdown Applications
2. Take Database and Application backup before start activity.
3. Take a backup of the $CONTEXT_FILE.
4. Edit the $CONTEXT_FILE and change the -XX:MaxPermSize parameter on the line below
FROM:
<oacore_jvm_start_options oa_var="s_oacore_jvm_start_options">-server -verbose:gc
-Xmx512M -Xms512M -XX:MaxPermSize=160M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
-XX:+UseParallelGC -XX:ParallelGCThreads=2 -Dcom.sun.management.jmxremote
-Djava.security.policy=/u01/product/1012/j2ee/oacore/config/java2.policy
-Djava.awt.headless=true -Dhttp.webdir.enable=false
-Doracle.security.jazn.config=/u01/inst/apps/TEST_testserver/ora/10.1.3/j2ee/oacore/config/ja
zn.xml</oacore_jvm_start_options>
TO:
oacore_jvm_start_options oa_var="s_oacore_jvm_start_options">-server -verbose:gc
-Xmx512M -Xms512M -XX:MaxPermSize=256M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
-XX:+UseParallelGC -XX:ParallelGCThreads=2 -Dcom.sun.management.jmxremote
-Djava.security.policy=/u01/product/1012/j2ee/oacore/config/java2.policy
-Djava.awt.headless=true -Dhttp.webdir.enable=false
-Doracle.security.jazn.config=/u01/inst/apps/TEST_testserver/ora/10.1.3/j2ee/oacore/config/ja
zn.xml</oacore_jvm_start_options>
FROM
<oacore_jvm_stop_options oa_var="s_oacore_jvm_stop_options">-server -verbose:gc
-Xmx512M -Xms512M -XX:MaxPermSize=160M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
-XX:+UseParallelGC -XX:ParallelGCThreads=2
-Djava.security.policy=/u01/product/1012/j2ee/oacore/config/java2.policy
-Djava.awt.headless=true -Dhttp.webdir.enable=false</oacore_jvm_stop_options>
TO:
<oacore_jvm_stop_options oa_var="s_oacore_jvm_stop_options">-server -verbose:gc
-Xmx512M -Xms512M -XX:MaxPermSize=256M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
-XX:+UseParallelGC -XX:ParallelGCThreads=2
-Djava.security.policy=/u01/product/1012/j2ee/oacore/config/java2.policy
-Djava.awt.headless=true -Dhttp.webdir.enable=false</oacore_jvm_stop_options>
5. Verify that s_oacore_nprocs is set to 2 on the $CONTEXT_FILE
cat $CONTEXT_FILE|grep s_oacore_nprocs
6. Take a backup of the $INST_TOP/ora/10.1.3/opmn/conf/opmn.xml file.
7. Edit the $INST_TOP/ora/10.1.3/opmn/conf/opmn.xml file and search for the process-type
id="oacore" and update the following lines or settings under it:
FROM:
<category id="start-parameters">
<data id="java-options" value="-server -verbose:gc
-Xmx1024M -Xms512M -XX:MaxPermSize=160M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
-XX:+UseParallelGC -XX:ParallelGCThreads=2 -Dcom.sun.management.jmxremote
-Djava.security.policy=$ORACLE_HOME/j2ee/oacore/config/java2.policy -Djava.awt.headless=true
-Dhttp.webdir.enable=false
-Doracle.security.jazn.config=/u01/inst/apps/TEST_testserver/ora/10.1.3/j2ee/oacore/config/ja
zn.xml"/>
TO:
<category id="start-parameters">
<data id="java-options" value="-server -verbose:gc -Xmx512M
-Xms512M -XX:MaxPermSize=256M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
-XX:+UseParallelGC -XX:ParallelGCThreads=2 -Dcom.sun.management.jmxremote
-Djava.security.policy=$ORACLE_HOME/j2ee/oacore/config/java2.policy -Djava.awt.headless=true
-Dhttp.webdir.enable=false
-Doracle.security.jazn.config=/u01/inst/apps/TEST_testserver/ora/10.1.3/j2ee/oacore/config/ja
zn.xml"/>
FROM:
<category id="stop-parameters">
<data id="java-options" value="-server -verbose:gc
-Xmx1024M -Xms512M -XX:MaxPermSize=160M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
-XX:+UseParallelGC -XX:ParallelGCThreads=2
-Djava.security.policy=$ORACLE_HOME/j2ee/oacore/config/java2.policy -Djava.awt.headless=true
-Dhttp.webdir.enable=false"/>
TO:
<category id="stop-parameters">
<data id="java-options" value="-server -verbose:gc -Xmx512M
-Xms512M -XX:MaxPermSize=256M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
-XX:+UseParallelGC -XX:ParallelGCThreads=2
-Djava.security.policy=$ORACLE_HOME/j2ee/oacore/config/java2.policy -Djava.awt.headless=true
-Dhttp.webdir.enable=false"/>
FROM:
<process-set id="default_group" numprocs="1"/>
TO:
<process-set id="default_group" numprocs="2"/>
8. Start Applications.
9. Verify Opmn status.
adopmnctl.sh status
1. Shutdown Applications
2. Take Database and Application backup before start activity.
3. Take a backup of the $CONTEXT_FILE.
4. Edit the $CONTEXT_FILE and change the -XX:MaxPermSize parameter on the line below
FROM:
<oacore_jvm_start_options oa_var="s_oacore_jvm_start_options">-server -verbose:gc
-Xmx512M -Xms512M -XX:MaxPermSize=160M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
-XX:+UseParallelGC -XX:ParallelGCThreads=2 -Dcom.sun.management.jmxremote
-Djava.security.policy=/u01/product/1012/j2ee/oacore/config/java2.policy
-Djava.awt.headless=true -Dhttp.webdir.enable=false
-Doracle.security.jazn.config=/u01/inst/apps/TEST_testserver/ora/10.1.3/j2ee/oacore/config/ja
zn.xml</oacore_jvm_start_options>
TO:
oacore_jvm_start_options oa_var="s_oacore_jvm_start_options">-server -verbose:gc
-Xmx512M -Xms512M -XX:MaxPermSize=256M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
-XX:+UseParallelGC -XX:ParallelGCThreads=2 -Dcom.sun.management.jmxremote
-Djava.security.policy=/u01/product/1012/j2ee/oacore/config/java2.policy
-Djava.awt.headless=true -Dhttp.webdir.enable=false
-Doracle.security.jazn.config=/u01/inst/apps/TEST_testserver/ora/10.1.3/j2ee/oacore/config/ja
zn.xml</oacore_jvm_start_options>
FROM
<oacore_jvm_stop_options oa_var="s_oacore_jvm_stop_options">-server -verbose:gc
-Xmx512M -Xms512M -XX:MaxPermSize=160M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
-XX:+UseParallelGC -XX:ParallelGCThreads=2
-Djava.security.policy=/u01/product/1012/j2ee/oacore/config/java2.policy
-Djava.awt.headless=true -Dhttp.webdir.enable=false</oacore_jvm_stop_options>
TO:
<oacore_jvm_stop_options oa_var="s_oacore_jvm_stop_options">-server -verbose:gc
-Xmx512M -Xms512M -XX:MaxPermSize=256M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
-XX:+UseParallelGC -XX:ParallelGCThreads=2
-Djava.security.policy=/u01/product/1012/j2ee/oacore/config/java2.policy
-Djava.awt.headless=true -Dhttp.webdir.enable=false</oacore_jvm_stop_options>
5. Verify that s_oacore_nprocs is set to 2 on the $CONTEXT_FILE
cat $CONTEXT_FILE|grep s_oacore_nprocs
6. Take a backup of the $INST_TOP/ora/10.1.3/opmn/conf/opmn.xml file.
7. Edit the $INST_TOP/ora/10.1.3/opmn/conf/opmn.xml file and search for the process-type
id="oacore" and update the following lines or settings under it:
FROM:
<category id="start-parameters">
<data id="java-options" value="-server -verbose:gc
-Xmx1024M -Xms512M -XX:MaxPermSize=160M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
-XX:+UseParallelGC -XX:ParallelGCThreads=2 -Dcom.sun.management.jmxremote
-Djava.security.policy=$ORACLE_HOME/j2ee/oacore/config/java2.policy -Djava.awt.headless=true
-Dhttp.webdir.enable=false
-Doracle.security.jazn.config=/u01/inst/apps/TEST_testserver/ora/10.1.3/j2ee/oacore/config/ja
zn.xml"/>
TO:
<category id="start-parameters">
<data id="java-options" value="-server -verbose:gc -Xmx512M
-Xms512M -XX:MaxPermSize=256M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
-XX:+UseParallelGC -XX:ParallelGCThreads=2 -Dcom.sun.management.jmxremote
-Djava.security.policy=$ORACLE_HOME/j2ee/oacore/config/java2.policy -Djava.awt.headless=true
-Dhttp.webdir.enable=false
-Doracle.security.jazn.config=/u01/inst/apps/TEST_testserver/ora/10.1.3/j2ee/oacore/config/ja
zn.xml"/>
FROM:
<category id="stop-parameters">
<data id="java-options" value="-server -verbose:gc
-Xmx1024M -Xms512M -XX:MaxPermSize=160M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
-XX:+UseParallelGC -XX:ParallelGCThreads=2
-Djava.security.policy=$ORACLE_HOME/j2ee/oacore/config/java2.policy -Djava.awt.headless=true
-Dhttp.webdir.enable=false"/>
TO:
<category id="stop-parameters">
<data id="java-options" value="-server -verbose:gc -Xmx512M
-Xms512M -XX:MaxPermSize=256M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB
-XX:+UseParallelGC -XX:ParallelGCThreads=2
-Djava.security.policy=$ORACLE_HOME/j2ee/oacore/config/java2.policy -Djava.awt.headless=true
-Dhttp.webdir.enable=false"/>
FROM:
<process-set id="default_group" numprocs="1"/>
TO:
<process-set id="default_group" numprocs="2"/>
8. Start Applications.
9. Verify Opmn status.
adopmnctl.sh status
No comments:
Post a Comment