Exception in thread “AddNode API Thread” java.lang.OutOfMemoryError: Java heap space (#addnode.sh, #RAC, #Java.OutOfMemory)

Issue:
I was trying to add a node in RAC environment using the below command; the prerequisites were all met and the copy portion of files was in progress. But, after some time, noticed that files were not being copied over to the other node. Noticed a “.err” file in oraInventory/logs with the below error message.

Command Executed:
./addnode.sh -silent “CLUSTER_NEW_NODES={node2}” “CLUSTER_NEW_VIRTUAL_HOSTNAMES={node2-vip}”

Error in the logfile:
Exception in thread “AddNode API Thread” java.lang.OutOfMemoryError: Java heap space

Cause:
The Copy process is using a java process which might be consuming all the memory

Resolution:
There are two possible solutions for addressing this issue,

1. Increase memory settings in oraParams.ini files
Navigate to $ORACLE_HOME/oui/ and modify the JRE_MEMORY_OPTIONS in oraparam.ini to a higher valuer (depending on the free memory on the server)

Eg: JRE_MEMORY_OPTIONS=” -Xms1500m -Xmx1500m -XX:MaxPermSize=128M”

Once the above change is done, restart the ./addnode.sh command

2. The main culprit for this process to error out could be “Audit Files” in “$ORACLE_GRID_HOME/rdbms/audit”

you could purge the files and retry the command

Advertisements
This entry was posted in Oracle Database, Oracle RAC. Bookmark the permalink.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s