OPatch napply fails with Error reporting " Exception in thread "Thread-4" java.lang.OutOfMemoryError: Java heap space " (Doc ID 1574571.1)

Last updated on AUGUST 08, 2017

Applies to:

Oracle Database - Enterprise Edition - Version 11.2.0.3 and later
Information in this document applies to any platform.

Symptoms

Installation of Patch using Opatch napply reports below error and fails to report conflict details with existing patch

Exception in thread "Thread-4" java.lang.OutOfMemoryError: Java heap space
UtilSession failed: Java heap space
       at java.lang.StringCoding.encode(StringCoding.java:369)
       at java.lang.String.getBytes(String.java:812)
       at java.io.UnixFileSystem.setLastModifiedTime(Native Method)
       at java.io.File.setLastModified(File.java:1227)
       at oracle.sysman.oii.oiit.OiitLockHeartbeat.touchFile(OiitLockHeartbeat.java:270)
       at oracle.sysman.oii.oiit.OiitLockHeartbeat.update(OiitLockHeartbeat.java:288)
       at oracle.sysman.oii.oiit.OiitLockHeartbeat$HeartBeatThread.run(OiitLockHeartbeat.java:13

 

Cause

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 hundreds of Community platforms