Operating Systems: i5/OS
             Personalize the table of contents and search results

This topic applies only on the i5/OS operating system.

 

Shutting down the WebSphere Application Server subsystem

 

You can shutdown the WebSphere Application Server subsystem in order to completely shutdown the WebSphere Application Server environment.

 

Overview

For information about stopping individual servers, nodes and deployment managers, see Starting an application server and Stopping an application server. In all cases, it is important to end the job gracefully so that the job can finish any tasks that are currently in progress, clean up any open connections, and end multiple threads in an appropriate order.

To stop (end) the WebSphere Application Server environment, perform one of the following steps. In both cases you must specify a value for the variable representing an adequate number of seconds.

To determine what is an adequate number of seconds, end the subsystem in a controlled fashion with DELAY(*NOLIMIT). The job logs for all WebSphere Application Server servers running in subsystem QWAS61 include message WAS0107 indicating that the server running in the job has ended. If the job is ended due to a SIGTERM signal (the signal is issued when commands such as ENDJOB, ENDSBS, etc are issued that result in the job being ended), the message contains the number of seconds required to gracefully end the application server. However, if the application server does not have enough time to end the application server gracefully, no message is issued.

If use the ENDSBS OPTION(*IMMED) command or ENDJOB OPTION(*IMMED), IBM recommends that you set the amount of time available for handling the job termination signal to an appropriate value.

If no message is found in the job log, it is a good indication that you need to increase the amount of time specified on the ENDSBS or ENDJOB command.

 

Procedure

  1. Invoke the End Subsystem (ENDSBS) CL command specifying the QWAS61 subsystem.

    ENDSBS SBS(QWAS61) OPTION(*CNTRLD) DELAY(adequateNumberOfSeconds)
    
    where adequateNumberOfSeconds is appropriate for the amount of time it takes to stop the WebSphere Application Server servers running on your system.

  2. Invoke the End Job (ENDJOB) CL command against the jobs running in the QWAS61 subsystem:

    ENDJOB JOB(jobNumber/QEJBSVR/jobName) 
         OPTION(*CNTRLD) DELAY(adequateNumberOfSeconds)
    where adequateNumberOfSeconds is appropriate for the amount of time it takes to stop the WebSphere Application Server servers running on your system.




}

 

Related tasks


Starting the WebSphere Application Server environment
Configuring application servers to automatically start when the QWAS61 subsystem starts
Managing the WebSphere Application Server subsystem