OutOfMemoryError error may be received because of inadequate memory when running addnode.sh or during Oracle database installation.
addnode.sh is terminated as follows when the error is received.
JVMDUMP006I Processing dump event "systhrow", detail "java/lang/OutOfMemoryError" - please wait.
JVMDUMP032I JVM requested Snap dump using '/u01/app/11.2.0/grid/oui/bin/Snap.20180505.135642.24510686.0001.trc' in response to an event
JVMDUMP010I Snap dump written to /u01/app/11.2.0/grid/oui/bin/Snap.20180505.135642.24510686.0001.trc
JVMDUMP032I JVM requested Heap dump using '/u01/app/11.2.0/grid/oui/bin/heapdump.20180505.135642.24510686.0002.phd' in response to an event
JVMDUMP010I Heap dump written to /u01/app/11.2.0/grid/oui/bin/heapdump.20180505.135642.24510686.0002.phd
JVMDUMP032I JVM requested Java dump using '/u01/app/11.2.0/grid/oui/bin/javacore.20180505.135642.24510686.0003.txt' in response to an event
JVMDUMP010I Java dump written to /u01/app/11.2.0/grid/oui/bin/javacore.20180505.135642.24510686.0003.txt
JVMDUMP013I Processed dump event "systhrow", detail "java/lang/OutOfMemoryError".
SEVERE:Abnormal program termination. An internal error has occured. Please provide the following files to Oracle Support :
To resolve the error, the amount of memory specified in the following line in the oraparam.ini file under the $GRID_HOME/oui/ directory must be increased. The mx value of 150 mb should be changed to at least 2048.
JRE_MEMORY_OPTIONS=" -mx150m -Xverify:none -Dice.pilots.html4.defaultEncoding=ISO8859_1"