Saturday, October 16, 2010

java.lang.OutofMemory exception

Problem:  java.lang.OutofMemory exception

Explanation: When running a large number of Access Manager for WebLogic Server sessions, Oracle WebLogic Server may run out of heap space.
Solution: Increase the maximum heap size option for the Java Virtual Machine (JVM) in the startWebLogic script. 

For example:

%JAVA_HOME%\bin\java -ms64m -mx128m -xms200m -xx:MaxPermSize=128m

Edit or or your customized scripts if there is any for this parameter.

Consult the Oracle product documentation for recommended heap size, based on application architecture, the number of memory-intensive processes running on the host system, and the version of Oracle WebLogic Server. Applications should be stress-tested to determine the appropriate heap size for their environment.

No comments:

Post a Comment