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 » General Discussion » QMGR takes long time to shut down

Post new topic  Reply to topic
 QMGR takes long time to shut down « View previous topic :: View next topic » 
Author Message
Boomn4x4
PostPosted: Tue Jul 01, 2014 5:50 am    Post subject: QMGR takes long time to shut down Reply with quote

Disciple

Joined: 28 Nov 2011
Posts: 172

Yesterday evening a back up hung because a qmgr was shutting down, the shutdown was issued with a -w parameter. The shutdown took longer than expected about, 25 minutes when a normal shutdown is about 10 seconds. The support analyst who was monitoring the backup had never seen it take so long, so they panicked and started killing processes. Eventually, MQ ended normally.

I've been tasked with trying to figure out what, exactly, was keeping the qmgr from shutting down. Are there any logs or tools to read logs that I can utilize to sift through and figure it out. The error logs are showing that the WebSphere MQ Publish/Subscribe broker for the qmgr ended, 12 minutes later a couple unexpected asynchronous signals were received (I'd assume this was the analyst trying to ctrl-c out), then finally 12 minutes later the qmgr task LOGGEREV ended, and the rest of the shutdown immediately followed through to completion.

Thanks
Back to top
View user's profile Send private message
bruce2359
PostPosted: Tue Jul 01, 2014 7:09 am    Post subject: Reply with quote

Poobah

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

Currently connected apps are the usual suspects. If you are in a hurry to shut down, use the -i switch or -p switch with endmqm.
_________________
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
dware
PostPosted: Thu Jul 03, 2014 5:43 am    Post subject: Reply with quote

Novice

Joined: 18 Nov 2013
Posts: 13

If you first want to identify the offending apps that aren't disconnecting then "dspmq -c" give you a chance to see all the local processes associated with a queue manager. You'll need to work out which are valid queue manager processes and which are the application processes that are not disconnecting, but it can be done.

David
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Jul 03, 2014 6:33 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

Very handy - but why isn't "dspmq -c" documented on the man page?
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
tczielke
PostPosted: Thu Jul 03, 2014 6:55 am    Post subject: Reply with quote

Guardian

Joined: 08 Jul 2010
Posts: 939
Location: Illinois, USA

Thanks for the "dspmq -c" tip, as well. Also, here is a little shell command to convert the output to the actual pids with the args. Those shell experts out there probably have a more elegant way to do this

for i in `dspmq -c | xargs -n1 | grep PID | cut -d'(' -f2 | cut -d')' -f1`; do ps -p $i -o user,pid,args; done
Back to top
View user's profile Send private message
dware
PostPosted: Thu Jul 03, 2014 11:30 pm    Post subject: Reply with quote

Novice

Joined: 18 Nov 2013
Posts: 13

Why isn't it documented? As you can see, it's simply one of those rough around the edges internal features that has leaked out into the public domain over time (e.g. search this forum for "dspmq -c"). As such I wouldn't rely too strongly on it or the format of its output, but as you can see it can get you out of a bind.
Back to top
View user's profile Send private message
smdavies99
PostPosted: Fri Jul 04, 2014 12:15 am    Post subject: Reply with quote

Jedi Council

Joined: 10 Feb 2003
Posts: 6076
Location: Somewhere over the Rainbow this side of Never-never land.

zpat wrote:
Very handy - but why isn't "dspmq -c" documented on the man page?


Showing your age I see?

_________________
WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995

Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
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 » General Discussion » QMGR takes long time to 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.