Weblogic Patching Error Using BSU – “java.lang.OutOfMemoryError: GC overhead limit exceeded”

While applying Weblogic bsu patch manually, we frequently get below error like.,

Exception in thread “main” java.lang.OutOfMemoryError: GC overhead limit exceeded
        at java.util.AbstractCollection.toArray(AbstractCollection.java:136)
        at java.util.ArrayList.addAll(ArrayList.java:559)
        at org.apache.xmlbeans.impl.schema.SchemaTypeImpl.getProperties(SchemaTypeImpl.java:705)
        at com.bea.cie.common.dao.xbean.XBeanDataHandler.loadPropertyMap(XBeanDataHandler.java:775)
        at com.bea.cie.common.dao.xbean.XBeanDataHandler.<init>(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)

Solution:

Follow these steps to resolve the issue:
1. Go to $FMW_Home/utils/bsu.
2. Edit bsu.sh (for UNIX) or bsu.cmd (for Windows).
3. Here you will find the following: MEM_ARGS=”-Xms256m -Xmx512m
4. Increase these values as needed: for example, to “-Xms2048m -Xmx2048m“.
rerun the patch using below command:
bsu.sh -patch_download_dir=$FMW_Home/utils/bsu/cache_dir -prod_dir=$FMW_Home/wlserver_10.3 -patchlist=<Patch name> -verbose -install
  • September 28, 2018 | 17 views
  • Comments