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 » MQ statistics

Post new topic  Reply to topic
 MQ statistics « View previous topic :: View next topic » 
Author Message
nsakthi
PostPosted: Thu Oct 22, 2015 2:37 am    Post subject: MQ statistics Reply with quote

Novice

Joined: 20 Dec 2012
Posts: 18

I have a requirement to know the statistics of message in a queue. The queue has 9 Million messages(accumulated over a week) which are sit in the queue for a dry-run testing. Application team needs to know some specific details from the statistics. I realize that MQ is not a DB to query in such a way. However I am curious to know if any tool / support pac serve this requirement.

1. Count of messages which are published on a particular day
2. Count of messages and on and after any date
Back to top
View user's profile Send private message
zpat
PostPosted: Thu Oct 22, 2015 2:54 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5849
Location: UK

That is a huge number and any tool is going to run slowly.

You could use the QLOAD tool to unload the queue to a file using date range criteria and see how many messages get unloaded (you can delete the file or use /dev/null).

Make sure to run qload locally on the same host as the QM for this purpose.

Qload is support pac MO03 or the replacement in MQ v8 of dmpmqmsg

http://www-01.ibm.com/support/docview.wss?uid=swg24009368
_________________
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.


Last edited by zpat on Thu Oct 22, 2015 11:46 am; edited 1 time in total
Back to top
View user's profile Send private message
nsakthi
PostPosted: Thu Oct 22, 2015 3:44 am    Post subject: MQ statistics Reply with quote

Novice

Joined: 20 Dec 2012
Posts: 18

Got it. Thanks for your response
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Oct 22, 2015 5:08 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

zpat wrote:
Qload is support pac MS03


Err. MO03.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Oct 22, 2015 5:10 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Also you could modify amqsbcg to only print out the relevant parts of the mqmd (putdate/puttime)... and modify it to use a 1 byte long buffer.

Or pipe the output to something that would filter and only show/count the data you wanted.

Either choice is going to get slower the further down the queue you get. The first choice won't be as slow (maybe), and won't take nearly as much memory.

I think in order to really do what you wanted, you would have needed to capture the statistics as the messages were being put.
_________________
chmod -R ugo-wx /
Back to top
View user's profile Send private message
tczielke
PostPosted: Thu Oct 22, 2015 11:38 am    Post subject: Reply with quote

Guardian

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

If I understand correctly what you are asking to collect, you should look at Accounting and Statistics Messages that come with the base MQ product -> http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.mon.doc/q037240_.htm?lang=en
_________________
Working with MQ since 2010.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Oct 22, 2015 11:56 am    Post subject: Reply with quote

Grand High Poobah

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

tczielke wrote:
If I understand correctly what you are asking to collect, you should look at Accounting and Statistics Messages that come with the base MQ product -> http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_8.0.0/com.ibm.mq.mon.doc/q037240_.htm?lang=en


mqjeff wrote:
I think in order to really do what you wanted, you would have needed to capture the statistics as the messages were being put.


This is correct, but I think the OP is trying to gather this information for a large depth of messages that were put with this switched off. Hopefully the OP will take the advice to switch it on in future.
_________________
Honesty is the best policy.
Insanity is the best defence.
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 » MQ statistics
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.