Search: For:
Browsing Single Category

APPS - java.lang.OutOfMemoryError

Topic ID: 1184
Created By: 2006-OCT-05 16:20:58 [Vitaliy]
Updated By: 2007-JAN-24 19:44:44 [Vitaliy]
Status: Open
Severity: Normal
Read Only: No
4433
2006-OCT-05 16:20:58
Moderator
 
 
Registered On: Mar 2006
Total Posts: 195
APPS - java.lang.OutOfMemoryError

ISSUE:

------ "OACoreGroup.0.stderr" ---------

java.lang.OutOfMemoryError


------ OACoreGroup.0.stdout ---------

[GC 112406K->59972K(128832K), 0.1090205 secs]
[Full GC 66317K->48528K(140088K), 1.2714837 secs]
[Full GC 51633K->48876K(140664K), 0.9914099 secs]
[Full GC 48894K->48886K(140680K), 0.9736370 secs]
[Full GC 48926K->48895K(140696K), 0.9765178 secs]


SOLUTION:

Increase JVM memory size to reduce Full GC (Garbage Collection) 
we now have one Full GC once a week from one every 10-15 minutes.

midtier01.applmgr->vi /u01/app/applmgr/product/iAS_115102/Apache/Jserv/etc/jserv.properties

wrapper.bin.parameters=-Xms1024M -Xmx1024M -XX:NewSize=128M -XX:MaxNewSize=128M -XX:PermSize=128M -XX:MaxPermSize=128M -verbose:gc

Here's how to test the max heap size that your JVM can support:

midtier01.applmgr->java -mx3000m -version
java version "1.3.1_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_16-b06)
Java HotSpot(TM) Client VM (build 1.3.1_16-b06, mixed mode)

## now note the error below
##
midtier01.applmgr->java -mx6000m -version
Invalid maximum heap size: -Xmx6000m
Could not create the Java virtual machine.
midtier01.applmgr->

midtier01.applmgr->java -mx2000m -version
java version "1.3.1_16"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3.1_16-b06)
Java HotSpot(TM) Client VM (build 1.3.1_16-b06, mixed mode)
midtier01.applmgr->


REFERENCE:
   Note:298694.1 Apache, mod_jserv and JServ Heap Size and Timeout Parameters
   Note:363644.1 Java.Lang.Outofmemoryerror: Null Trying To Access IProcurement
   Note:281342.1 How to improve performance of Oracle Phaos SSLava and other Oracle Phaos Toolkits with JDK 1.3 and JDK 1.4.
   http://forum.java.su...58&messageID=1386605
   http://forum.java.su...jspa?threadID=718048
   http://support.bea.c...ProblemsPattern.html
   http://java.sun.com/...otspot/gc/index.html
   http://forum.java.su...ID=747363&tstart=135
   Note:246105.1 Upgrading to J2SE 1.4.2 with Oracle Applications 11i
   Note:344132.1 Exception:java.lang.OutOfMemoryError when using JDK 1.3.1 and FND.H
   Note:387190.1 Output Post Processor Fails with java.lang.OutOfMemoryError for Large Reports
[edited by: Vitaliy at 19:44 (CST) on Jan. 24, 2007]