|
|
New Tips (No 7)
Q7: Out of Memory Errors Under Heavy Load (Grid Control)
A7:
Under heavy load, especially when connecting to multiple target databases, The Oracle Management Service may encounter
out-of-memory errors and restart. When an Oracle Management Service restarts, there is no loss of state in the repository, but users logged in to that Management Service will be asked to login
again. If the restarts are frequent, do the following for each
installed Management Service:
a) Stop the oms;
$ORACLE_HOME/opmn/bin/opmnctl stopall
(Note: it is important to use opmnctl stopall here rather than
"emctl stop oms" since we need to completely stop the associated
Application Server instance as well)
b) Edit $ORACLE_HOME/opmn/conf/opmn.xml
Search for the OC4J_EM section, which is a line that looks like this:
<process-type id="OC4J_EM" module-id="OC4J">
Edit the "java-options" data tag under this process type. Before edit,
this line should look similar to this:
<data id="java-options" value="-server
-Djava.security.policy=/private/smptest/oms_rel9/j2ee/OC4J_EM/config/java2.policy
-Djava.awt.headless=true -Xmx512M -XX:MaxPermSize=64m
-DORACLE_HOME=/private/smptest/oms_rel9 "/>
Change the -Xmx option from 512M to 1024M, and the -XX:MaxPermSize option from
64M to 256M.Also add the -Xnoclassgc option.
After edits, the line should look like this:
<data id="java-options" value="-server
-Djava.security.policy=/private/smptest/oms_rel9/j2ee/OC4J_EM/config/java2.policy
-Djava.awt.headless=true -Xmx1024M -XX:MaxPermSize=256M -Xnoclassgc
-DORACLE_HOME=/private/smptest/oms_rel9 "/>
c) Restart the Oracle Management Service using "emctl start oms". |
|