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 » Does MQ count messages on startup?

Post new topic  Reply to topic
 Does MQ count messages on startup? « View previous topic :: View next topic » 
Author Message
ChrisW
PostPosted: Wed Oct 17, 2007 4:09 am    Post subject: Does MQ count messages on startup? Reply with quote

Voyager

Joined: 20 May 2001
Posts: 78
Location: UK

Just trying to explain this behaviour........

We have a Queue Manager that currently holds 6.5 million messages pending processing. I know thats not a good thing but politics, priorities etc. They are working on it.

In order to add some more disk space we stopped the Queue Manager to be on the safe side and consolidate the queue files (AIX/5.3 - upgrade to 6 soon), added the extra space, and restarted the QM. No problems and all processes connected OK. But when doing a display of queue depths, all the big queues took up to 5 minutes to display the current depth of each one (say average 200,000 messages on each). Once they were displayed, then the count returned immediately.

So I assume that MQ stores the message counts in memory and then updates there as messages put/got, and either counts the messages asyncronously on startup, or counts them on the first request for the curdepth.

Does anyone know which of the above applies, or knows better?

Thanks, Chris.
Back to top
View user's profile Send private message Send e-mail
Gaya3
PostPosted: Wed Oct 17, 2007 4:23 am    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

Hi

I never heard of storing the Message count or current depth in memory.

I do know that only the persistent messages will be backed.

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
vmcgloin
PostPosted: Wed Oct 17, 2007 6:33 am    Post subject: Reply with quote

Knight

Joined: 04 Apr 2002
Posts: 560
Location: Scotland

How are you displaying the queue depths? MQExplorer (which version)? runmqsc?
Back to top
View user's profile Send private message
mvic
PostPosted: Wed Oct 17, 2007 8:20 am    Post subject: Re: Does MQ count messages on startup? Reply with quote

Jedi

Joined: 09 Mar 2004
Posts: 2080

ChrisW wrote:
So I assume that MQ stores the message counts in memory and then updates there as messages put/got, and either counts the messages asyncronously on startup, or counts them on the first request for the curdepth.

Does anyone know which of the above applies, or knows better?

The queue manager doesn't know the depth of a queue until your application (or runmqsc, channel rcvr program, etc.) accesses the queue for the first time. Does that answer the question(s)?
Back to top
View user's profile Send private message
ChrisW
PostPosted: Wed Oct 17, 2007 11:06 pm    Post subject: Reply with quote

Voyager

Joined: 20 May 2001
Posts: 78
Location: UK

Thanks mvic. That makes sense. Was using both runmqsc and in-house written display program. I just never really thought about it before.
Back to top
View user's profile Send private message Send e-mail
PeterPotkay
PostPosted: Thu Oct 18, 2007 4:51 am    Post subject: Reply with quote

Poobah

Joined: 15 May 2001
Posts: 7722

Chris, what version of MQ are you on?
_________________
Peter Potkay
Keep Calm and MQ On
Back to top
View user's profile Send private message
ChrisW
PostPosted: Thu Oct 18, 2007 6:51 am    Post subject: Reply with quote

Voyager

Joined: 20 May 2001
Posts: 78
Location: UK

5.3 CSD12. Upgrade to 6 soon I hope (keeps me in work).
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » Does MQ count messages on startup?
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.