Saturday, September 9, 2017

Weblogic 10.3.6 Patching Error Using BSU - "java.lang.OutOfMemoryError: Java heap space"

Using BSU (Smart Update) to apply a patch to Weblogic Server 10.3.6, and the following errors are seen:

[applmgr@ip-10-0-0-161 bsu]$ ./bsu.sh -install -patch_download_dir=/u01/oracle/PROD/fs1/FMW_Home/utils/bsu/cache_dir -patchlist=EQDE -prod_dir=/u01/oracle/PROD/fs1/FMW_Home/wlserver_10.3
Exception in thread "main" java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.util.HashMap.createEntry(HashMap.java:897)
        at java.util.HashMap.addEntry(HashMap.java:884)
        at java.util.HashMap.put(HashMap.java:505)
        at com.bea.cie.common.dao.xbean.XBeanDataHandler.loadPropertyMap(XBeanDataHandler.java:778)
        at com.bea.cie.common.dao.xbean.XBeanDataHandler.(XBeanDataHandler.java:99)
        at com.bea.cie.common.dao.xbean.XBeanDataHandler.createDataHandler(XBeanDataHandler.java:559)
        at com.bea.cie.common.dao.xbean.XBeanDataHandler.getComplexValue(XBeanDataHandler.java:455)
        at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getPatchDependencies(PatchCatalogHelper.java:442)
        at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getPatchDependencies(PatchCatalogHelper.java:464)
        at com.bea.plateng.patch.dao.cat.PatchCatalog.getPatchDependencies(PatchCatalog.java:56)
        at com.bea.plateng.patch.dao.cat.PatchCatalogHelper.getInvalidatedPatchMap(PatchCatalogHelper.java:1621)
        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@ip-10-0-0-161 bsu]$

CAUSE

 bsu.sh is not configured with high enough values when applying larger patches such as a Patch Set Update.

SOLUTION

Add Xms and Xmx in bsu script to resolve the out of memory issue.

Example:

bsu.sh (UNIX):
"$JAVA_HOME/bin/java" -Xms2048m -Xmx2048m -jar patch-client.jar $*

No comments: