PROBLEM:

While applying patch in Weblogic 10, which is part of EBS setup using bsu.sh script, got below error.

[oracle@bsu]$ ./bsu.sh -install -patch_download_dir=/oracle/EBS12/oracle/PROD/fs1/FMW_Home/utils/bsu/cache_dir -patchlist=QMJP -prod_dir=/oracle/EBS12/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)

SOLUTION:

Some patches might required, very heap memory. So fix this type of errors, you can follow steps.

Currently, in the bsu.sh file, MEM_ARGS is set to -Xms512m -Xmx512m . Now increase the same to a higher value i.e “-Xms2048m -Xmx2048m

The updated file will look as below.

Now run the bsu.sh command again, it will run successfully.

 

[oracle@bsu]$ ./bsu.sh -install -patch_download_dir=/oracle/EBS12/oracle/PROD/fs1/FMW_Home/utils/bsu/cache_dir -patchlist=QMJP -prod_dir=/oracle/EBS12/oracle/PROD/fs1/FMW_Home/wlserver_10.3