Friday, July 8, 2016

Exception in thread "main" java.lang.OutOfMemoryError: Java heap space in Weblogic Patch application


$ sh bsu.sh -prod_dir=/u01/TEST/fs2/FMW_Home/wlserver_10.3 -patchlist=EJUW -verbose -install
Checking for conflicts....
Conflict(s) detected - resolve conflict condition and execute patch installation again
Conflict condition details follow:
Patch EJUW is mutually exclusive and cannot coexist with patch(es): Y5AP,BLTG,FCX7,1LRI,VKXF,2GYW,CW9T
Exception in thread "main" java.lang.OutOfMemoryError: Java heap space
    at java.util.AbstractCollection.toArray(AbstractCollection.java:136)
    at java.util.ArrayList.addAll(ArrayList.java:530)
    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:306)

Solution:
1.  Go to /%FMW_Home%/utils/bsu/
2.  Edit the bsu.sh
3.  Here you will find the following: MEM_ARGS="-Xms256m -Xmx512m"
4.  Increase these values to "-Xms1024m -Xmx1024m"

Reference:
Java.lang.OutOfMemoryError" Error When Applying Oracle Weblogic Server Patch (Doc ID 2007492.1)

No comments:

Post a Comment