My Oracle Support Banner

When Applying or Removing PSU Patch in Windows, BSU Fails with Caused by: java.lang.OutOfMemoryError: Map failed (Doc ID 2402975.1)

Last updated on MAY 25, 2018

Applies to:

Oracle WebLogic Server - Version 10.3.6 to 12.1.1.0
Information in this document applies to any platform.

Symptoms

When applying 2017 GFWX April 2018 WebLogic 10.3.6.0.180417 PSU or when removing FMJJ October 2017 Weblogic 10.3.6.0.171017 PSU, BSU fails with following entries:

...
Restoring C:\bea103\wlserver_10.3\server\lib\jdbcdrivers.xml from C:\bea103\patch_wls1036\backup\backup.jar
Restoring C:\bea103\wlserver_10.3\server\lib\wseeclient.jar from C:\bea103\patch_wls1036\backup\backup.jar
Restoring c:\bea103\modules\com.oracle.core.weblogic.msgcat_1.2.0.0.jar from C:\bea103\patch_wls1036\backup\backup.jar
Result: Failure
Failure condition follows:
An error occured while removing patches - run with logging to obtain detailed information
java.io.IOException: Map failed
Result: Failure
Failure condition follows:
An error occured while removing patches - run with logging to obtain detailed information
java.io.IOException: Map failed
c:\bea103\utils\bsu>

 

In the BSU's log, it can be seen following entries of the failure:

2018-05-09 10:50:39,865 DEBUG [Main Thread] com.bea.plateng.patch.CommandLinePatchInstaller - An unexpected error was encountered removing patch FMJJ. That resource may be busy.
The patch was not removed, and has been restored to its original state. For further information, enable logging and run patch removal again.
com.bea.plateng.patch.PatchRemovalException: java.io.IOException: Map failed
at com.bea.plateng.patch.FilePatchRemover.removePatch(FilePatchRemover.java:231)
at com.bea.plateng.patch.AbstractPatchRemover.remove(AbstractPatchRemover.java:56)
at com.bea.plateng.patch.PatchRemover.removePatch(PatchRemover.java:463)
at com.bea.plateng.patch.PatchRemover.removePatches(PatchRemover.java:355)
at com.bea.plateng.patch.PatchRemover.remove(PatchRemover.java:183)
at com.bea.plateng.patch.CommandLinePatchInstaller.remove(CommandLinePatchInstaller.java:181)
at com.bea.plateng.patch.CommandLinePatchInstaller.remove(CommandLinePatchInstaller.java:133)
at com.bea.plateng.patch.Patch.main(Patch.java:323)
Caused by: java.io.IOException: Map failed
at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:748)
at sun.nio.ch.FileChannelImpl.transferToTrustedChannel(FileChannelImpl.java:437)
at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:510)
at com.bea.plateng.common.util.FileCopy.copy(FileCopy.java:52)
at com.bea.plateng.patch.PatchHelper.backupFile(PatchHelper.java:477)
at com.bea.plateng.patch.FilePatchRemover.removePatch(FilePatchRemover.java:221)
at com.bea.plateng.patch.AbstractPatchRemover.remove(AbstractPatchRemover.java:57)
... 6 more
Caused by: java.lang.OutOfMemoryError: Map failed
at sun.nio.ch.FileChannelImpl.map0(Native Method)
at sun.nio.ch.FileChannelImpl.map(FileChannelImpl.java:745)
at sun.nio.ch.FileChannelImpl.transferToTrustedChannel(FileChannelImpl.java:437)
at sun.nio.ch.FileChannelImpl.transferTo(FileChannelImpl.java:510)
at com.bea.plateng.common.util.FileCopy.copy(FileCopy.java:52)
at com.bea.plateng.patch.PatchHelper.backupFile(PatchHelper.java:477)
at com.bea.plateng.patch.FilePatchRemover.removePatch(FilePatchRemover.java:221)
at com.bea.plateng.patch.AbstractPatchRemover.remove(AbstractPatchRemover.java:56)
at com.bea.plateng.patch.PatchRemover.removePatch(PatchRemover.java:463)
at com.bea.plateng.patch.PatchRemover.removePatches(PatchRemover.java:355)
at com.bea.plateng.patch.PatchRemover.remove(PatchRemover.java:183)
at com.bea.plateng.patch.CommandLinePatchInstaller.remove(CommandLinePatchInstaller.java:180)
at com.bea.plateng.patch.CommandLinePatchInstaller.remove(CommandLinePatchInstaller.java:132)
... 1 more

Note that this can occurs for any PSU on a Windows 32-Bit version.

Cause

To view full details, sign in with your My Oracle Support account.

Don't have a My Oracle Support account? Click to get started!


My Oracle Support provides customers with access to over a million knowledge articles and a vibrant support community of peers and Oracle experts.