+

Search Tips   |   Advanced Search

(iSeries)

Shutting down the QWAS85 subsystem for WAS

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

For information about stopping individual servers, nodes and deployment managers, see the topics 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 WAS environment, perform one of the following steps. In both cases, 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 WAS servers running in subsystem QWAS85 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, and so on, 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), 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 we must increase the amount of time specified on the ENDSBS or ENDJOB command.


Tasks

  1. Invoke the End Subsystem (ENDSBS) CL command specifying the QWAS85 subsystem.
    ENDSBS SBS(QWAS85) OPTION(*CNTRLD) DELAY(adequateNumberOfSeconds)
    
    where adequateNumberOfSeconds is appropriate for the amount of time it takes to stop the WAS servers running on the system.

  2. Invoke the End Job (ENDJOB) CL command against the jobs running in the QWAS85 subsystem:
    ENDJOB JOB(jobNumber/QEJBSVR/jobName) 
         OPTION(*CNTRLD) DELAY(adequateNumberOfSeconds)
    
    where adequateNumberOfSeconds is appropriate for the amount of time it takes to stop the WAS servers running on the system.

  • Starting the application server environment in the QWAS85 subsystem
  • Configure application servers to automatically start when the QWAS85 subsystem starts