How to start or stop WebSphere node

Home > Search > How-to
  by

Starting or stopping a node is different than starting or stopping a node agent. This article describes how to stop or start a node agent. Refer to this article to stop or start a node agent. If you are not familiar with what a node is, or what the different between a node and a node agent is, refer to understanding the difference between a node and a node agent in WebSphere.

You can only start or stop a node after the node has been federated into the dmgr. If you attempt to use the startNode.sh (Linux), startNode.bat (Windows), stopNode.sh (Linux), or stopNode.bat (Windows) commands before a node has been federated into the dmgr, you will get the following exception. This exception occurs because the "nodeagents" directory is created after the node has been federated into the dmgr.

ADMU0111E: Program exiting with error: java.io.FileNotFoundException:
           was_home/profiles/your_profile/config/cells/your_cell/nodes/your_node/servers/nodeagents/server.xml
           (No such file or directory)

 

Starting or stopping a node will restart the JVMs and apps in the node. Nodes cannot span multiple computers.

Think of the node as the wrapper that contains the JVMs, and the JVMs contain the app. If a node is stopped, the JVMs and apps in the node will be stopped. Starting a node, using startNode.sh (Linux) or startNode.bat (Windows) will not start the JVMs in the node. After the node is started, you will then need to start the JVMs in the node.

 


Dmgr web console

The dmgr contains an option to stop a node, but does not contain an option to start a node. You will need to use the command line to start a node. In the left panel of the WebSphere web console, expand System administration > Nodes, check the node that you want to stop, and select Stop. In this example, the AppSrv02Node01 node has been stopped. Once stopped, the Status displays a question mark icon, because stopping a node actually stops both the node and the node agent.

 


Command Line

The startNode.sh (Linux) or startNode.bat (Windows) commands start the node. If there is a node agent being used for communication between a dmgr and the node, this command will also start the node agent. Starting a node will not start the JVMs in the node, thus you will typically start the JVMs in the node after the node has been started.

~]# was_home/profile/profile_name/bin/startNode.sh
. . .
ADMU3000I: Server nodeagent open for e-business; process id is 12345

 

The stopNode.sh (Linux) or stopNode.bat (Windows) commands stop the node. If there is a node agent being used for communication between a dmgr and the node, this command will also stop the node agent. Stopping the noe will also stop the JVMs in the node.

~]# was_home/profiles/profile_name/bin/stopNode.sh
. . .
ADMU4000I: Server nodeagent stop completed.


Add a Comment




We will never share your name or email with anyone. Enter your email if you would like to be notified when we respond to your comment.




Please enter in the box below so that we can be sure you are a human.




Comments