13 December 2017

java.lang.OutOfMemoryError: Java heap space during Weblogic patching

java.lang.OutOfMemoryError: Java heap space during Weblogic patching

$ bsu.sh -install -patch_download_dir=/web03/TEST/fs2/FMW_Home/utils/bsu/cache_dir -patchlist=FMJJ -prod_dir=/web03/TEST/fs2/FMW_Home/wlserver_10.3
JVMDUMP039I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" at 2017/12/08 15:53:57 - please wait.
JVMDUMP039I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" at 2017/12/08 15:53:57 - please wait.
JVMDUMP039I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" at 2017/12/08 15:53:57 - please wait.
JVMDUMP032I JVM requested System dump using '/web03/TEST/fs2/FMW_Home/utils/bsu/core.20171208.155357.40042682.0001.dmp' in response to an event
Note: "Enable full CORE dump" in smit is set to FALSE and as a result there will be limited threading information in core file.
JVMDUMP010I System dump written to /web03/TEST/fs2/FMW_Home/utils/bsu/core.20171208.155357.40042682.0001.dmp
JVMDUMP032I JVM requested Heap dump using '/web03/TEST/fs2/FMW_Home/utils/bsu/heapdump.20171208.155357.40042682.0002.phd' in response to an event
JVMDUMP010I Heap dump written to /web03/TEST/fs2/FMW_Home/utils/bsu/heapdump.20171208.155357.40042682.0002.phd
JVMDUMP032I JVM requested Heap dump using '/web03/TEST/fs2/FMW_Home/utils/bsu/heapdump.20171208.155357.40042682.0003.phd' in response to an event
JVMDUMP010I Heap dump written to /web03/TEST/fs2/FMW_Home/utils/bsu/heapdump.20171208.155357.40042682.0003.phd
JVMDUMP032I JVM requested Heap dump using '/web03/TEST/fs2/FMW_Home/utils/bsu/heapdump.20171208.155357.40042682.0004.phd' in response to an event
JVMDUMP010I Heap dump written to /web03/TEST/fs2/FMW_Home/utils/bsu/heapdump.20171208.155357.40042682.0004.phd
JVMDUMP032I JVM requested Java dump using '/web03/TEST/fs2/FMW_Home/utils/bsu/javacore.20171208.155357.40042682.0005.txt' in response to an event
JVMDUMP010I Java dump written to /web03/TEST/fs2/FMW_Home/utils/bsu/javacore.20171208.155357.40042682.0005.txt
JVMDUMP032I JVM requested Snap dump using '/web03/TEST/fs2/FMW_Home/utils/bsu/Snap.20171208.155357.40042682.0008.trc' in response to an event
JVMDUMP010I Snap dump written to /web03/TEST/fs2/FMW_Home/utils/bsu/Snap.20171208.155357.40042682.0008.trc
JVMDUMP013I Processed dump event "systhrow", detail "java/lang/OutOfMemoryError".
JVMDUMP032I JVM requested Java dump using '/web03/TEST/fs2/FMW_Home/utils/bsu/javacore.20171208.155357.40042682.0006.txt' in response to an event
JVMDUMP010I Java dump written to /web03/TEST/fs2/FMW_Home/utils/bsu/javacore.20171208.155357.40042682.0006.txt
JVMDUMP032I JVM requested Snap dump using '/web03/TEST/fs2/FMW_Home/utils/bsu/Snap.20171208.155357.40042682.0009.trc' in response to an event
JVMDUMP010I Snap dump written to {nothing to snap}
JVMDUMP013I Processed dump event "systhrow", detail "java/lang/OutOfMemoryError".
JVMDUMP032I JVM requested Java dump using '/web03/TEST/fs2/FMW_Home/utils/bsu/javacore.20171208.155357.40042682.0007.txt' in response to an event
JVMDUMP010I Java dump written to /web03/TEST/fs2/FMW_Home/utils/bsu/javacore.20171208.155357.40042682.0007.txt
JVMDUMP032I JVM requested Snap dump using '/web03/TEST/fs2/FMW_Home/utils/bsu/Snap.20171208.155357.40042682.0010.trc' in response to an event
JVMDUMP010I Snap dump written to /web03/TEST/fs2/FMW_Home/utils/bsu/Snap.20171208.155357.40042682.0010.trc
JVMDUMP013I Processed dump event "systhrow", detail "java/lang/OutOfMemoryError".
Exception in thread "main" Exception in thread "Timer-0" java.lang.OutOfMemoryErrorjava.lang.OutOfMemoryError: : Java heap spaceJava heap space

        at      at org.apache.xmlbeans.impl.schema.SchemaTypeImpljava.io.UnixFileSystem..getPropertiescanonicalize((SchemaTypeImpl.javaUnixFileSystem.java::710874))

        at      at com.bea.cie.common.dao.xbean.XBeanDataHandlerjava.io.File..loadPropertyMapgetCanonicalPath((XBeanDataHandler.javaFile.java::767350))

        at      at com.bea.cie.common.dao.xbean.XBeanDataHandlerjava.util.prefs.FileSystemPreferences..<init>lockFile((XBeanDataHandler.javaFileSystemPreferences.java::9991)4
)       at
com.bea.cie.common.dao.xbean.XBeanDataHandler   at .java.util.prefs.FileSystemPreferencescreateDataHandler.(syncXBeanDataHandler.java(:FileSystemPreferences.java5:5794)1
)       at
com.bea.cie.common.dao.xbean.XBeanDataHandler   at .java.util.prefs.FileSystemPreferencesgetComplexValue.(flushXBeanDataHandler.java(:FileSystemPreferences.java4:5853)6
)       at
com.bea.plateng.patch.dao.cat.PatchCatalogHelper        at .java.util.prefs.FileSystemPreferencesgetPatchDependencies.(syncWorldPatchCatalogHelper.java(:FileSystemPreferences.java4:4427)6
)       at
com.bea.plateng.patch.dao.cat.PatchCatalogHelper        at .java.util.prefs.FileSystemPreferencesgetPatchDependencies.(access$1200PatchCatalogHelper.java(:FileSystemPreferences.java4:6642))

        at      at com.bea.plateng.patch.dao.cat.PatchCatalogjava.util.prefs.FileSystemPreferences$3..getPatchDependenciesrun((PatchCatalog.javaFileSystemPreferences.java::5464)4
)
        at java.util.TimerThread        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.:20mainLoop(Timer.java:1)
567     at com.bea.plateng.patch.Patch.main(Patch.java:281)
)
        at java.util.TimerThread.run(Timer.java:517)

Solution :

$ cat bsu.sh
#!/bin/sh

JAVA_HOME="/web03/TEST/fs2/EBSapps/comn/util/jdk64"

MEM_ARGS="-Xms512m -Xmx1024m -XX:+UseParallelGC"

"$JAVA_HOME/bin/java" ${MEM_ARGS} -jar patch-client.jar $*
$ vi bsu.sh  -- Set below Values

MEM_ARGS="-Xms2048m -Xmx2048m -XX:+UseParallelGC"

Resart the Patch

$ bsu.sh -install -patch_download_dir=/web03/TEST/fs2/FMW_Home/utils/bsu/cache_dir -patchlist=FMJJ -prod_dir=/web03/TEST/fs2/FMW_Home/wlserver_10.3
Checking for conflicts....

Weblogic 10.3.6 Patching Error Using BSU - "java.lang.OutOfMemoryError: Java heap space" (Doc ID 2291916.1)

No comments: