Troubleshooting: The removeNode command returns an out of memory error

The removeNode command returns a node from a network deployment cell to a stand-alone application server.


When you execute the removeNode command, an out of memory error is encountered.


If this error occurs:

  1. AIXLinuxEnsure that the command is not running.
  2. WindowsEnsure that the removeNode.bat command is not running.
  3. AIXLinuxLog on as root.
  4. Open the following file in a text editor:
    • AIXLinuxWAS_installdir/bin/
    • WindowsWAS_installdir/bin/removeNode.bat
  5. In the text file, find the following line of text
    • AIXLinux"$JAVA_HOME"/bin/java \
    • Windows"$JAVA_HOME"\bin\java \
  6. Insert the following line of text below the "$JAVA_HOME"/bin/java \ line of text:
    max_allowedm \

    Where max_allowed is the maximum value allowable by your operating system. This value must a multiple of 1024. Append the letter k or K to indicate kilobytes, or m or M to indicate megabytes.

  7. Save the changes and exit the text editor.
  8. WindowsLog on to the WebSphere Application Server Network Deployment Administration Console.
  9. WindowsExpand System Administration > Deployment Manager > Java and Process Management > Process Definition > Java Virtual Machine.
  10. WindowsChange the Maximum Heap Size value to the maximum value supported by your operating system.
    Note: You can reduce this number after you complete the removeNode process.
  11. WindowsRestart the Deployment Manager.
  12. Run the removeNode command again. If the command runs successfully, no further action is needed. If the command fails, do the following steps:
    1. Issue the following command to restore the configuration backup that you made when you removed the node.
      • AIXLinuxWAS_installdir/bin/
      • WindowsWAS_installdir/bin/restoreConfig.bat
      where backup_file is the full path to the backup file.
    2. Run the removeNode command again.