|
IOTN :: Field Book :: ORACLE 
 |
opmn java.lang.OutOfMemoryError ´ëó
|
ÃÖ±æÈ£
[LIST]
|
2005-06-16 19:24:30, Á¶È¸ : 32,842 |

metalink : OC4J config
°øÁö:284707.1
Enterprise Manager Grid Control 10.1.0.3.0 Release Notes
find : opmn.xml
$ORACLE_HOME/opmn/conf/opmn.xml
------------------------------------------------------------------------------------------------
<category id="start-parameters">
<data id="java-options" value="-server
-Djava.security.policy=/sso/product/ora10gAS/j2ee/OC4J_SECURITY/config/java2.policy
-Djava.awt.headless=true -Xmx1024m -Djava.awt.headless=true "/>
<data id="oc4j-options" value="-properties"/>
</category>
------------------------------------------------------------------------------------------------
opmnctl stopall
opmnctl startall
------------------------------------------------------------------------------------------------
ons.log
--------
05/05/13 16:01:11 [4] Connection 1,210.218.10.211,6200 connect (Connection refused)
0ye05/13 19:52:24 [4] Closing active connection 2,210.218.10.212,6200
05/05/13 19:52:24 [4] Connection 2,210.218.10.212,6200 connect (Connection refused)
05/05/15 01:49:40 [1] Memory reallocation failed
05/06/09 08:54:46 [4] ONS server initiated
05/06/09 08:54:52 [4] Connection 1,210.218.10.211,6200 opmn_nzos_Write error 28857
05/06/09 08:54:52 [4] Connection 1,210.218.10.211,6200 opmn_nzos_Read error 28862
05/06/09 08:54:52 [2] Connection 1,210.218.10.211,6200 header RCV failed (Bad file number) coFlags=205
05/06/09 08:54:52 [4] Closing active connection 1,210.218.10.211,6200
05/06/09 09:00:42 [4] Logging disabled
05/06/09 09:01:09 [4] ONS server initiated
05/06/09 17:51:00 [4] Closing active connection 1,210.218.10.211,6200
OC4J~home~default_island~1"
--------
05/03/03 21:18:34 Oracle Application Server Containers for J2EE 10g (9.0.4.0.0) initialized
05/06/08 20:43:10 java.lang.OutOfMemoryError
05/06/08 20:58:11 java.lang.OutOfMemoryError
05/06/08 21:02:02 java.lang.OutOfMemoryError
05/06/08 21:22:31 java.lang.OutOfMemoryError
05/06/08 21:47:42 java.lang.OutOfMemoryError
05/06/08 21:51:39 java.lang.OutOfMemoryError
------------------------------------------------------------------------------------------------
You might want to increase the Java heap size. For example, to increase the heap size to 100M
use this command:
$> java -mx100m <myclass>
also
you might want to verify that the ulimit setting is configured properly
------------------------------------------------------------------------------------------------
By default, OC4J preloads a large number of classes to improve performance. Because of this, you may get a java.lang.OutOfMemoryError when you attempt to deploy to OC4J.
If you get a java.lang.OutOfMemoryError, you have two options:
* If your machine lacks sufficient free memory to run OC4J with a larger maximum heap size, shut down the Java process that runs OC4J and restart it with the -Doracle.j2ee.dont.use.memory.archive=true flag to turn off class preloading, for example:
java -Doracle.j2ee.dont.use.memory.archive=true -jar oc4j.jar
* If your machine has at least 512MB of free memory, OC4J will run more quickly if you leave preloading enabled, but startup
time will increase considerably. Shut down the Java process that runs OC4J, and restart it with a larger maximum heap size using the -mx flag, for example:
Java -mx512M -jar oc4j.jar
------------------------------------------------------------------------------------------------
fact: Oracle Containers for J2EE 1.0.2
symptom: Error starting OC4J
symptom: java.lang.OutOfMemoryError
symptom: Starting multiple OC4J instances
symptom: First OC4J instance starts without error
cause: The maximum Java heap size has been exceeded.
When starting OC4J, the Java Virtual Machine (JVM) attempts to grab as much
free memory as possible and/or required.
There is then insufficient memory to start further JVMs.
fix:
Set the initial and maximum Java heap sizes via the parameters -Xms and -Xmx
respectively when starting OC4J.
For example :
java -Xms64M -Xmx128M -jar orion.jar
| 3.235.60.197
|
|
 |
Copyright 1999-2023 Zeroboard / skin by ÃÖ±æÈ£(gilho.kr@gmail.com)
|
|
|