ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » CSQ4MSTR won't shut down

Post new topic  Reply to topic
 CSQ4MSTR won't shut down « View previous topic :: View next topic » 
Author Message
zhanghz
PostPosted: Wed Sep 02, 2009 12:38 am    Post subject: CSQ4MSTR won't shut down Reply with quote

Disciple

Joined: 17 Jun 2008
Posts: 186

I have this z/OS qmgr CSQ4. I issued the +CSQ4 STOP QMGR, the CSQ4CHIN was shut down successfully, but CSQ4MSTR halts after the qmgr did DISPLAY USAGE TYPE(ALL). It just don't shut down. It's been like this for 1.5 hours.

I encoutered similar case before. If I issue a STOP QMGR MODE(FORCE), the qmgr will be shut down.

I don't know what the qmgr is doing. What should I check now? I have confirmed that there is no user in MQ pannel.. I did a DIS CONN, there are 17 connections, all with URTYPE(QMGR) and APPLTYPE(SYSTEM). But I don't know whether this is normal.

Thanks.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Wed Sep 02, 2009 1:08 am    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

if you only use "STOP" the qmgr starts it*'s shutdown, but waits for all applications (threads) that are connected to disconnect. Applications therfore should use fail-if-quiescing as option e.g. in get-wait so they get notified about the qmgr shutdown.
if they don't do, of if they do not react properly and end their work they will stay connected, so your qmgr will not shut down.

Using MODE(FORCE) will make MQ terminate these threads and rollback open units of work, so no special recovery is needed during restart.

Use a DIS THREAD(*) to identify applications that do not disconnect after issuing the STOP command. (sometimes you will find yourself using CSQOREXX Panels ). Then talk with developement to include that fail_if_quiescing option.

if doing qmgr shutdown by system automation, we implement stop qmgr first, and then, if mq does not terminate after a specified time, the next command issued is the stop qmgr mode(force)
_________________
Regards, Butcher
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Sep 02, 2009 5:54 am    Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 9470
Location: US: west coast, almost. Otherwise, enroute.

This is common when developers code MQGET with WAIT and WAITINTERVAL of forever (or some other irrational WAITINTERVAL).
_________________
I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live.
Back to top
View user's profile Send private message
zhanghz
PostPosted: Wed Sep 02, 2009 4:44 pm    Post subject: Reply with quote

Disciple

Joined: 17 Jun 2008
Posts: 186

I DISplayed CONNections, all "SYSTEM" connection. Say if there is an application connected with MQ and wouldn't want to release the connection, the CONNection entry should be something like "CICS", "BATCH", chinit ID, right? But what I got were all SYSTEM connections.
Back to top
View user's profile Send private message
Vitor
PostPosted: Wed Sep 02, 2009 5:41 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 11 Nov 2005
Posts: 26093
Location: Texas, USA

zhanghz wrote:
Say if there is an application connected with MQ and wouldn't want to release the connection, the CONNection entry should be something like "CICS", "BATCH", chinit ID, right?


Why? If the application is badly coded enough to have an indefinate wait and not respond to a quiese command, why wouldn't it be using a SYSTEM connection which is equally bad practice?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
Mr Butcher
PostPosted: Wed Sep 02, 2009 9:45 pm    Post subject: Reply with quote

Padawan

Joined: 23 May 2005
Posts: 1716

could you please post the command you use and the output for these connections?
_________________
Regards, Butcher
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Mainframe, CICS, TXSeries » CSQ4MSTR won't shut down
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.