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 » Messages Enqued and Current Depth

Post new topic  Reply to topic
 Messages Enqued and Current Depth « View previous topic :: View next topic » 
Author Message
Sridevi
PostPosted: Fri Aug 26, 2005 9:01 am    Post subject: Messages Enqued and Current Depth Reply with quote

Newbie

Joined: 08 Aug 2005
Posts: 6

Hi,

We are developing a monitoring tool which gives the queue enqueued .

But we could find that though the current depth is some 226, messages enqueued remains 0.

As per my assumption, current depth is the number of messages in the queue currently and messages enqued is the total number messages passing inside the queue.

Hence if the current depth is 226, then shouldnt the q enqued be more than that?

Please clarify.

Regards,

Sridevi.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Aug 26, 2005 9:05 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Are you using "Reset queue statistics"?

It does actually reset the queue statistics each time it is called. So if you call it right after every put, the qdepth could grow to infinity, and it would always only return 1.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
JT
PostPosted: Fri Aug 26, 2005 9:23 am    Post subject: Reply with quote

Padawan

Joined: 27 Mar 2003
Posts: 1564
Location: Hartford, CT.

Quote:
Hence if the current depth is 226, then shouldnt the q enqued be more than that?

Besides performing a RESET QSTATS, PeterPotkay illustrates a scenario in the following thread, where that wouldn't be the case: http://www.mqseries.net/phpBB2/viewtopic.php?t=22644
Back to top
View user's profile Send private message
Sridevi
PostPosted: Fri Aug 26, 2005 10:36 am    Post subject: Reply with quote

Newbie

Joined: 08 Aug 2005
Posts: 6

Yes . We are using Reset Queue Statistics. but everytime i get a new value i append the enqued value to the previous count and increment the value.

But the very first time the statistics i get are
High Queue Depth:226
Message enqueued :0
Current Depth:226

I am really confused of the statistics.

Regards,
Sridevi.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Aug 26, 2005 10:40 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

The very first time since when?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
Sridevi
PostPosted: Fri Aug 26, 2005 10:46 am    Post subject: Reply with quote

Newbie

Joined: 08 Aug 2005
Posts: 6

As per my understanding the counters get reset everytime we take the statistics .

So we store the stats in a file and add the q enqued value everytime we take the stats.

when we deleted the file where we store the value, there is nothing to be added and so the values whatever we get are directly from the statistics and no addition is done to the message enqueued.

Still the values obtained are confusing.

Sridevi
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Fri Aug 26, 2005 11:10 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Do this:
1) Reset queue statistics
2) make a note of the returned values
3) Put a message.
4) Put a message
5) Get a message
6) Reset queue statistics
7) make a note of the returned values
Reset queue statistics
9) make a note of the returned values.
_________________
I am *not* the model of the modern major general.
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 » Messages Enqued and Current Depth
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.