addNode.sh/bat script fails with OutOfMemory error
 Technote (troubleshooting)
 
Problem(Abstract)
When an administrator tries to incorporate the node into the cell, the addNode process runs out of memory resource and fails with an out-of-memory error.


ADMU0115I: Trace mode is on.
ADMU0116I: Tool information is being logged in file /usr/WebSphere/AppServer/logs/addNode.log
ADMU0001I: Begin federation of node nj022ich with Deployment Manager at nj022ich:8879.
ADMU0009I: Successfully connected to Deployment Manager Server: nj022ich:8879
ADMU0505I: Servers found in configuration:
ADMU0506I: Server name: server1
ADMU0506I: Server name: WebSphere_Portal
ADMU2010I: Stopping all server processes for node nj022ich
ADMU0512I: Server server1 cannot be reached. It appears to be stopped.
ADMU0512I: Server WebSphere_Portal cannot be reached. It appears to be stopped.
ADMU0024I: Deleting the old backup directory.
ADMU0015I: Backing up the original cell repository.
ADMU0111E: Program exiting with error: java.lang.OutOfMemoryError
ADMU0211I: Error details may be seen in the file: /usr/WebSphere/AppServer/logs/addNode.log
 
Cause
The addNode task uses all the memory resource.
 
Resolving the problem
In IBM® WebSphere® Application Server V5.0 V5.1, each command line script starts a separate Java Virtual Machine (JVM). To overcome addNode.sh/bat running out the memory, update settings of the minimum and maximum heap size.
To update addNode.sh
  1. Make a backup copy of addNode.sh
  2. Increase the minimum and maximum values for the heap size. To do this, update parameters after

    $JAVA_HOME/bin/java


    Add:

    -Xms256m -Xmx512m

    Example:


    "$JAVA_HOME"/bin/java -Xms256m -Xmx512m \
    -Xbootclasspath/p:"$WAS_BOOTCLASSPATH" \
    $DEBUG \
    $CONSOLE_ENCODING \
    "$CLIENTSAS" \
    "$CLIENTSOAP" \
    -Dws.ext.dirs="$WAS_EXT_DIRS" \
    $USER_INSTALL_PROP \
    -Dwas.install.root="$WAS_HOME" \
    -classpath "$WAS_CLASSPATH":$CLASSPATH com.ibm.ws.bootstrap.WSLauncher \
    $SHELL "$CONFIG_ROOT" "$WAS_CELL" "$WAS_NODE" "$@"
    <li>Save addNode.sh/bat. </li><li>Run addNode.sh/bat again. </li><li>If this fails, enable the -trace option and open a PMR. </li>
 
 
Cross Reference information
Segment Product Component Platform Version Edition
Application Servers Runtimes for Java Technology Java SDK
 
 


Document Information


Product categories: Software > Application Servers > Distributed Application & Web Servers > WebSphere Application Server > Administrative Console (all non-scripting)
Operating system(s): Windows
Software version: 6.1
Software edition:
Reference #: 1164423
IBM Group: Software Group
Modified date: Aug 31, 2005