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 IBM MQ Support » how to check number of consumers on MQ level

Post new topic  Reply to topic
 how to check number of consumers on MQ level « View previous topic :: View next topic » 
Author Message
czaszek
PostPosted: Wed Sep 02, 2009 1:24 am    Post subject: how to check number of consumers on MQ level Reply with quote

Apprentice

Joined: 30 May 2006
Posts: 36
Location: Poland

Hi

System which is connected to our MQ queue manager (via SVRCONN channel) complains that the messages are in a queue in an incorrect order.

We are are amost sure that it is not true because our PUTting system logs every message during processing and it shows that messages were put in correct order.

Is there any way to check (e.g. queue status) how many consumers are actively in parallel consuming messages from a queue?
(maybe some traces, but human readible)

Thanks in advance for help

Lukasz
Back to top
View user's profile Send private message
WMBDEV1
PostPosted: Wed Sep 02, 2009 1:33 am    Post subject: Reply with quote

Sentinel

Joined: 05 Mar 2009
Posts: 888
Location: UK

Check the open input count (IPROCS) on a queue. This shows how many apps have the queue open for read but you have to bear in mind that they may not necesserily actually be consuming a message at that point in time - You should check your application logs for that.

You could do an MQ trace which will show messages being read off but this may be a little too low level.
Back to top
View user's profile Send private message
czaszek
PostPosted: Wed Sep 02, 2009 3:02 am    Post subject: Reply with quote

Apprentice

Joined: 30 May 2006
Posts: 36
Location: Poland

Thanks!
Back to top
View user's profile Send private message
vmcgloin
PostPosted: Wed Sep 02, 2009 3:46 am    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

Or enable queue monitoring (only need to do it on the individual queue) and view the queue status... you get more details that way.
Back to top
View user's profile Send private message
Sam Uppu
PostPosted: Wed Sep 02, 2009 5:47 am    Post subject: Reply with quote

Yatiri

Joined: 11 Nov 2008
Posts: 610

DISPLAY QSTATUS(queue in question) TYPE(HANDLE) ALL will provide the PID of the reading app and you can grep to see who is that.

Thanks.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Wed Sep 02, 2009 5:47 am    Post subject: Reply with quote

Poobah

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

Quote:
System which is connected to our MQ queue manager (via SVRCONN channel) complains that the messages are in a queue in an incorrect order.

By system, you mean the consuming application, yes? So, your messages have affinity for other (previous) messages.

Is this a new application?
_________________
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
fjb_saper
PostPosted: Wed Sep 02, 2009 5:54 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20700
Location: LI,NY

Check the queue's setup. The default delivery sequence is priority (and FIFO within the priority) . You may set the queue's delivery sequence to FIFO.

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Vitor
PostPosted: Wed Sep 02, 2009 10:46 am    Post subject: Reply with quote

Grand High Poobah

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

You should also search for previous discussions on message order. Just because messages are put in a given order, it's not certain they'll be presented to the receiving application in that order. It's certainly not guaranteed by the queue manager.

Another reason why message affinity is a bad idea.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
gbaddeley
PostPosted: Wed Sep 02, 2009 4:09 pm    Post subject: Reply with quote

Jedi Knight

Joined: 25 Mar 2003
Posts: 2501
Location: Melbourne, Australia

Vitor wrote:
You should also search for previous discussions on message order. Just because messages are put in a given order, it's not certain they'll be presented to the receiving application in that order. It's certainly not guaranteed by the queue manager.

Another reason why message affinity is a bad idea.


Correct, MQ does not guarantee message order.

If the consuming app requires an affinity for message order, an order identifier should be stored in CorrelId or the message data. The consuming app then needs to marshall the messages into the correct order using temporary storage, such as a database table.
_________________
Glenn
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 IBM MQ Support » how to check number of consumers on MQ level
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.