如何調整OAS使用的初始記憶體
[root@e1oas03 ~]# ps -ef|grep PD
oracle 3751 3702 0 Feb27 ? 00:06:57 /u01/OracleAS_1/jdk/bin/java -server -Djava.security.policy=/u01/OracleAS_1/j2ee/PD_e1oas03/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -XX:MaxPermSize=128m
-Xms32m -Xmx768m -Doracle.ons.oraclehome=/u01/OracleAS_1 -Doracle.home=/u01/OracleAS_1 -Doracle.ons.oracleconfighome=/u01/OracleAS_1 -Doracle.ons.clustername=default -Doracle.ons.instancename=OracleAS_1.e1oas03.rgp.raritan.com -Dopmn.compatible=904 -Doracle.ons.indexid=PD_e1oas03.default_group.1 -Doracle.ons.numprocs=1 -Doracle.ons.uid=208867310 -Doracle.oc4j.groupname=default_group -Doracle.oc4j.instancename=PD_e1oas03 -Doracle.oc4j.islandname=default_group -Doracle.opmn.routingid=g_rt_id -DOPMN=true -jar oc4j.jar -config /u01/OracleAS_1/j2ee/PD_e1oas03/config/server.xml -properties -ports default-web-site:ajp:12501,rmi:12401,rmis:12701,jms:12601
Server Manager: PD_e1oas03 Java Environment Runtime Detail
- Heap Memory Used (Bytes)
- 18866208
- Committed Heap Memory Size (Bytes)
- 33488896
- Maximum Allowed Memory Size (Bytes)
- 775487488
[root@e1oas01 ~]# ps -ef|grep PD
root 3929 3791 2 Mar02 ? 00:52:28 /u01/OracleAS_1/jdk/bin/java -server
-Xmx1024m -Xms1024m -Djava.security.policy=/u01/OracleAS_1/j2ee/PD_e1oas01/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -XX:MaxPermSize=128m -Doracle.ons.oraclehome=/u01/OracleAS_1 -Doracle.home=/u01/OracleAS_1 -Doracle.ons.oracleconfighome=/u01/OracleAS_1 -Doracle.ons.clustername=default -Doracle.ons.instancename=OracleAS_1.e1oas01.rgp.raritan.com -Dopmn.compatible=904 -Doracle.ons.indexid=PD_e1oas01.default_group.1 -Doracle.ons.numprocs=1 -Doracle.ons.uid=1843732547 -Doracle.oc4j.groupname=default_group -Doracle.oc4j.instancename=PD_e1oas01 -Doracle.oc4j.islandname=default_group -Doracle.opmn.routingid=g_rt_id -DOPMN=true -jar oc4j.jar -config /u01/OracleAS_1/j2ee/PD_e1oas01/config/server.xml -properties -ports default-web-site:ajp:12501,rmi:12401,rmis:12701,jms:12601
Server Manager: PD_e1oas01 Java Environment Runtime Detail
-
- Heap Memory Used (Bytes)
- 720447720
- Committed Heap Memory Size (Bytes)
- 999358464
- Maximum Allowed Memory Size (Bytes)
- 1034027008
[root@e1oas02 ~]# ps -ef|grep PD
root 3895 3768 0 Mar02 ? 00:19:58 /u01/OracleAS_1/jdk/bin/java -server -
Xmx1024m -Xms1024m -Djava.security.policy=/u01/OracleAS_1/j2ee/PD_e1oas02/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -XX:MaxPermSize=128m -Doracle.ons.oraclehome=/u01/OracleAS_1 -Doracle.home=/u01/OracleAS_1 -Doracle.ons.oracleconfighome=/u01/OracleAS_1 -Doracle.ons.clustername=default -Doracle.ons.instancename=OracleAS_1.e1oas02.rgp.raritan.com -Dopmn.compatible=904 -Doracle.ons.indexid=PD_e1oas02.default_group.1 -Doracle.ons.numprocs=1 -Doracle.ons.uid=745174371 -Doracle.oc4j.groupname=default_group -Doracle.oc4j.instancename=PD_e1oas02 -Doracle.oc4j.islandname=default_group -Doracle.opmn.routingid=g_rt_id -DOPMN=true -jar oc4j.jar -config /u01/OracleAS_1/j2ee/PD_e1oas02/config/server.xml -properties -ports default-web-site:ajp:12503,rmi:12403,rmis:12703,jms:12603
Server Manager: PD_e1oas02 Java Environment Runtime Detail
- Heap Memory Used (Bytes)
- 902440864
- Committed Heap Memory Size (Bytes)
- 995164160
- Maximum Allowed Memory Size (Bytes)
- 1034027008
修改方式:
這個步驟之後要restart linux server
shutdown -r now
確認修改之後的結果
[root@e1oas03 ~]# ps -ef|grep PD
oracle 3750 3700 15 05:25 ? 00:00:16 /u01/OracleAS_1/jdk/bin/java -server -Xmx1024m -Xms1024m -Djava.security.policy=/u01/OracleAS_1/j2ee/PD_e1oas03/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false -XX:MaxPermSize=128m -Doracle.ons.oraclehome=/u01/OracleAS_1 -Doracle.home=/u01/OracleAS_1 -Doracle.ons.oracleconfighome=/u01/OracleAS_1 -Doracle.ons.clustername=default -Doracle.ons.instancename=OracleAS_1.e1oas03.rgp.raritan.com -Dopmn.compatible=904 -Doracle.ons.indexid=PD_e1oas03.default_group.1 -Doracle.ons.numprocs=1 -Doracle.ons.uid=208867341 -Doracle.oc4j.groupname=default_group -Doracle.oc4j.instancename=PD_e1oas03 -Doracle.oc4j.islandname=default_group -Doracle.opmn.routingid=g_rt_id -DOPMN=true -jar oc4j.jar -config /u01/OracleAS_1/j2ee/PD_e1oas03/config/server.xml -properties -ports default-web-site:ajp:12501,rmi:12402,rmis:12702,jms:12602