View previous topic :: View next topic |
Author |
Message |
asitpant Beginner
Joined: 11 Nov 2003 Posts: 5 Topics: 3
|
Posted: Wed Apr 07, 2004 11:58 am Post subject: Diffrence in MQ depth and actual number of messages |
|
|
Hi,
My problem is that when I am writting to an MQ while writting the program writes a specific number of messages say 100. But when I read the MQ it reads less number of messages say 90.
If I check the the MQ depth it shows as 100 but if I open and count the actual number of messages it comes to 90 only.
So the problem is that MQ is showing a diffrent depth than the actual number of messages in the MQ and I am able to read less number of messages .
MQ gurus please advice.
Thanks
Asit |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
Posted: Wed Apr 07, 2004 12:27 pm Post subject: |
|
|
Asit,
What is the expiry on messages set to ? -1 indicates unlimited which means that they never expire. You can run the amqsbcg sample against the program to see what the expiry is set to.The expiry time is a period of time expressed in tenths of a second, set by the application that puts the message. The message becomes eligible to be discarded if it has not been removed from the destination queue before this period of time elapses.
I bet that the 10 missing messages were expired and they were not removed until there was a get performed.
Hope this helps...
Cheers
Kolusu _________________ Kolusu
www.linkedin.com/in/kolusu |
|
Back to top |
|
|
asitpant Beginner
Joined: 11 Nov 2003 Posts: 5 Topics: 3
|
Posted: Wed Apr 07, 2004 12:45 pm Post subject: |
|
|
Hi Kolsu,
Thanks a lot for your reply. I will check this. I need one more favour, could you please provide me some pointers to running amqsbcg in maniframe environment. I have never used this utility before.
Thanks
Asit |
|
Back to top |
|
|
kolusu Site Admin
Joined: 26 Nov 2002 Posts: 12376 Topics: 75 Location: San Jose
|
|
Back to top |
|
|
Brian Beginner
Joined: 12 Aug 2003 Posts: 95 Topics: 6
|
Posted: Wed Apr 07, 2004 10:52 pm Post subject: |
|
|
An MQOPEN will not show you the actual message count. You need to do an explicit MQINQ with an MQIA_CURRENT_Q_DEPTH (this is offhand please) attribute to get the correct Q depth. |
|
Back to top |
|
|
|
|