Author |
Message
|
Sridevi |
Posted: Fri Aug 26, 2005 9:01 am Post subject: Messages Enqued and Current Depth |
|
|
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 |
|
 |
jefflowrey |
Posted: Fri Aug 26, 2005 9:05 am Post subject: |
|
|
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 |
|
 |
JT |
Posted: Fri Aug 26, 2005 9:23 am Post subject: |
|
|
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 |
|
 |
Sridevi |
Posted: Fri Aug 26, 2005 10:36 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Fri Aug 26, 2005 10:40 am Post subject: |
|
|
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 |
|
 |
Sridevi |
Posted: Fri Aug 26, 2005 10:46 am Post subject: |
|
|
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 |
|
 |
jefflowrey |
Posted: Fri Aug 26, 2005 11:10 am Post subject: |
|
|
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 |
|
 |
|