Discussion:
Graceful shutdown of App Server
(too old to reply)
a***@gmail.com
2006-05-23 06:33:24 UTC
Permalink
Hi all,

In Weblogic, there is an option for graceful shutdown where you can
specified the timeout before the app server do a graceful shutdown.
When this is called, the app server would not accept any more request
and after the timeout, it would just shutdown.

Is there such a option in Websphere?

Appreciate any help.
Dexthor
2006-05-23 13:20:35 UTC
Permalink
Assuming that you are using WAS6, here's an excerpt from infocenter:

stopServer <server> [options]
...
-timeout <seconds>
Specifies the time to wait for server shutdown before timing out and
returning an error.
-nowait
Tells the stopServer command not to wait for successful shutdown of the
server process.


So, technically you can try: "stopServer.sh your_server -timeout 120".
Capture the output and see if that is a success or failure. If failure,
proceed to terminate the process using a "kill or something similar ".
Or you may retry the stop command this time with "-nowait" flag, which
is an immediate shutdown.

HTH
-Dexthor.
a***@gmail.com
2006-05-23 13:37:26 UTC
Permalink
Does the timeout ensures that during that period there would not be any
new connections to the server?

Been looking around for this issue

Appreciate your help.
Dexthor
2006-05-23 13:56:38 UTC
Permalink
I dont think there will be a guarantee that there wont be new requests
handled by the Server, until it is shutdown. From what I've read,
WebSphere prefers limiting the request intake at the WebServer plugin.
There there are options to stop receiving new sessions.

You may try to take down the HTTP/HTTP(S) endpoints/Transport Channels
first before you attempt shutdown. This way you are guaranteed that no
requests will get through to the server during shutdown. However, your
webclients may loose connections, but inflight threads may complete
(assuming that you didnot issue a -nowait stop).

-Dexthor.

Continue reading on narkive:
Search results for 'Graceful shutdown of App Server' (Questions and Answers)
4
replies
Shutdown ANY pc in my network?
started 2011-07-17 00:43:29 UTC
computer networking
Loading...