Contact Premier Online Trainings Today

Oracle Apps DBA - Exception in thread main java.lang.OutOfMemoryError: GC overhead limit exceeded

Date Added: 11 Nov.2019 Date Updated: 11 Nov.2019 Oracle Apps DBA Full Blog

Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded

Issue:

Exception in thread “main” java.lang.OutOfMemoryError: GC overhead limit exceeded while applying Patch on WebLogic 11g (10.3.6).

[applmgr@ebs122 bsu]$ ./bsu.sh -install -patch_download_dir=$FMW_HOME/utils/bsu/cache_dir -patchlist=B47X -prod_dir=$FMW_HOME/wlserver_10.3
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.lang.Class.getDeclaredMethods0(Native Method)
        at java.lang.Class.privateGetDeclaredMethods(Class.java:2625)
        at java.lang.Class.getMethod0(Class.java:2866)
        at java.lang.Class.getMethod0(Class.java:2875)
        at java.lang.Class.getMethod0(Class.java:2875)
        at java.lang.Class.getMethod(Class.java:1676)
        at com.bea.cie.common.dao.xbean.XBeanDataHandler.isValueSet(XBeanDataHandler.java:958)
        at com.bea.cie.common.dao.xbean.XBeanDataHandler.getValueFromObject(XBeanDataHandler.java:589)
        at com.bea.cie.common.dao.xbean.XBeanDataHandler.getSimpleValue(XBeanDataHandler.java:431)
        at com.bea.plateng.patch.dao.cat.PatchDetail.getId(PatchDetail.java:42)
        at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getPatchDetails(PatchCatalogHelper.java:700)
        at com.bea.plateng.patch.dao.cat.Version.getPatchDetails(Version.java:41)
        at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getFilteredPatchDetailMap(PatchCatalogHelper.java:1202)
        at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getPatchDetails(PatchCatalogHelper.java:1398)
        at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getEveryPatchDetail(PatchCatalogHelper.java:767)
        at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getInvalidatedPatchMap(PatchCatalogHelper.java:1622)
        at com.bea.plateng.patch.PatchSystem.updatePatchCatalog(PatchSystem.java:436)
        at com.bea.plateng.patch.PatchSystem.refresh(PatchSystem.java:130)
        at com.bea.plateng.patch.PatchSystem.setCacheDir(PatchSystem.java:201)
        at com.bea.plateng.patch.Patch.main(Patch.java:281)
[applmgr@ebs122 bsu]$

 

Resolution:

Increase the memory (heap size) in bsu.sh to a higher settings and retry.
 
Below is for your reference from bsu.sh script.
 
[applmgr@ebs122 bsu]$ cat bsu.sh
#!/bin/sh
 
JAVA_HOME="/apps/oracle/DEV/fs1/EBSapps/comn/util/jdk64"
 
MEM_ARGS="-Xms512m -Xmx1024m -XX:+UseParallelGC"
 
"$JAVA_HOME/bin/java" ${MEM_ARGS} -jar patch-client.jar $*
[applmgr@ebs122 bsu]$
 
[applmgr@ebs122 bsu]$ cat bsu.sh
#!/bin/sh
 
JAVA_HOME="/apps/oracle/DEV/fs1/EBSapps/comn/util/jdk64"
 
MEM_ARGS="-Xms2048m -Xmx2048m -XX:+UseParallelGC"
 
"$JAVA_HOME/bin/java" ${MEM_ARGS} -jar patch-client.jar $*
[applmgr@ebs122 bsu]$