How to start or stop WebSphere JVM

Home > Search > How-to
  by

Starting or stopping a WebSphere JVM will restart the JVM and all of the apps in the JVM. Restarting the JVM will not restart the node / node agent, deployment manager, or cell.

 


Web console

If the application server has been federated into the network deployment manager (dmgr), you will use the dmgr to start or stop the application server. 

  1. In the left panel of the WebSphere web console, expand Servers > Server Types.
  2. Select Websphere application servers.
  3. Check an application server, and select Start, Stop, or Restart.

 

When the status of an application server is a green arrow icon, the application server is running.

 

When the status of an application server is a white x icon, the application server is in the process of being started or stopped.

 

When the stauts of an application server is a red x icon, the application server is stopped.

 

If the status of an application server is a question mark icon, the status of the application server is unknown. This is often due to the node being stopped.

 


Start Server - Command Line

The startServer.sh (Linux) or startServer.bat (Windows) command can be used to start an application server.

~]# was_home/profiles/your_profile/bin/startServer.sh server_name

 

The SystemOut.log file will contain "open for e-business" when the application server has started.

ADMU3000I: Server server1 open for e-business; process id is 12345.

 

Likewise, the serverStatus.sh (Linux) or serverStatus.bat (Windows) command can be used to check the status of an application server. The -all option can be used to display the status of every node and application server in the cell.

~]# was_home/profiles/your_profile/bin/serverStatus.sh server_name
. . .
ADMU0508I: The application server "server1" is STARTED.

 

On Linux, the ps command can be used to ensure the application server is running. In this example, the WebSphere application server is using PID 12345.

~]# ps -ef | grep -i WebSphere
root  12345  1  0  Dec13  ?  00:45:50  /opt/IBM/WebSphere/AppServer/. . .

 

On Linux, a crontab job can be created to ensure the deployment manager is started when the system is rebooted.

@reboot bash was_home/profiles/your_profile/bin/startServer.sh server_name

 


Stop Server - Command Line

The stopServer.sh (Linux) or stopServer.bat (Windows) command can be used to stop an application server.

~]# was_home/profiles/your_profile/bin/stopServer.sh server_name

 

The SystemOut.log file will contain "Server your_server stopped" when the application server has stopped.

WSVR0024I: Server server1 stopped

 

Likewise, the serverStatus.sh (Linux) or serverStatus.bat (Windows) command can be used to check the status of an application server. The -all option can be used to display the status of every node and application server in the cell.

~]# was_home/profiles/your_profile/bin/serverStatus.sh server_name
. . .
ADMU0509I: The application server "server1" cannot be reached. It appears to be stopped.

 

On Linux, the ps command can be used to ensure there are no WebSphere processes actively running. In this example, the ps command only returns one line, which is not the WebSphere application server, and instead just the ps command itself.

~]# ps -ef | grep -i WebSphere
root  12345  1234  0  18:51  pts/2  00:00:00  grep --color=auto WebSphere

 



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