Stopping a queue manager
There are three ways to stop a queue manager: a quiesced shutdown, and immediate shutdown, and a preemptive shutdown.
Use the endmqm command to stop a queue manager.
dspmq -o installation
command.
QMB
, enter the following command:
endmqm QMB
- Open the IBM MQ Explorer.
- Select the queue manager from the Navigator View.
- Click Stop... . The End Queue Manager panel is displayed.
- Select Controlled, or Immediate.
- Click OK . The queue manager stops.
Quiesced shutdown
By default, the endmqm command performs a quiesced shutdown of the specified queue manager. This might take a while to complete. A quiesced shutdown waits until all connected applications have disconnected.
endmqm -c QMB
you are not told when all applications have stopped. (An endmqm -c QMB
command is equivalent to an endmqm QMB
command.)
endmqm -w QMB
the command waits until all applications have stopped and the queue manager has ended.
Immediate shutdown
For an immediate shutdown any current MQI calls are allowed to complete, but any new calls fail. This type of shutdown does not wait for applications to disconnect from the queue manager.
endmqm -i QMB
Preemptive shutdown
-p
flag. For example:
endmqm -p QMB
This stops the queue manager immediately. If this method still does not work, see Stopping a queue manager manually for an alternative solution.
For a detailed description of the endmqm command and its options, see endmqm.
If you have problems shutting down a queue manager
- Do not check MQI return codes properly
- Do not request notification of a quiesce
- Terminate without disconnecting from the queue manager (by issuing an MQDISC call)
If a problem occurs when you stop the queue manager, you can break out of the endmqm command using Ctrl-C. You can then issue another endmqm command, but this time with a flag that specifies the type of shutdown that you require.