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 » Need help understanding Expiry Time??

Post new topic  Reply to topic
 Need help understanding Expiry Time?? « View previous topic :: View next topic » 
Author Message
FBTO
PostPosted: Wed Nov 08, 2006 12:56 pm    Post subject: Need help understanding Expiry Time?? Reply with quote

Newbie

Joined: 08 Nov 2006
Posts: 5

I have a question about the MQ Expiry Time.

I have a senario where I send a stream of messages over a 5 minute period, with an expiry time of 15 seconds. If I don't get a response from any of these messages in 15 seconds, I get a host down message. During my test, I processed around 394 cases in a 5 minute window without any host down messages. I ran the exact same test, but the only difference was that I doubled the MQ Expiry time to 30 seconds. Strangely enough, I got a better throughput, and was able to process over 455 cases in the 5 minute window.

So my question is, How does MQ expiry time work? I increased my expiry, and got a better throughput. I repeated these tests multiple times, and always got better results with higher expiry time. Does the MQ know that the expiry time is so big and runs some process that polices the queues less often, therefore allowing more messages to be processed?

I look forward to any thoughts on this matter.

Thanks!!
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Wed Nov 08, 2006 1:35 pm    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

My take would be that MQ is not calling the cleanup process as often therefore more work can be pushed through.

Just a SWAG
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Nov 08, 2006 1:42 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

My take would be that the GET is returning quicker by not having to deal with expired messages.

But, again, a SWAG.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
FBTO
PostPosted: Wed Nov 08, 2006 2:27 pm    Post subject: Reply with quote

Newbie

Joined: 08 Nov 2006
Posts: 5

In both tests, there were zero expired messages.

Can someone explain how the queuing works in regards to matching with the correlation id and timeouts?
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Wed Nov 08, 2006 3:53 pm    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Quote:
there were zero expired messages.


...why would that matter?

I was under the impression that the process of expiring messages (not deleteing them) goes on regradless of the MQGET process but it is only the MQGET the causes then to actually be deleted.

Of course I could be wrong....but that would certainly explain the throughput too.

Quote:
Can someone explain how the queuing works in regards to matching with the correlation id and timeouts?


What is to explain? Either a message matches the CORRELID or it doesn't. Timeout (expiration) has nothing to do with it. If a message is expired on the queue any MQGET (correlid matching or not) will result in the message being discarded
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Nov 09, 2006 12:37 am    Post subject: Reply with quote

Grand High Poobah

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

kevinf2349 wrote:
I was under the impression that the process of expiring messages (not deleteing them) goes on regradless of the MQGET process but it is only the MQGET the causes then to actually be deleted.


I think this changed - in v5.3 and below the MQGET determines if the message is expiried and deletes it, in v6 there's a separate process that cleans them up in addition to the MQGET. I swear I've read that some place but can't find the reference. Any kind posters who know where it's written down and share would prevent me needing my medication checked at the weekend......

FBTO - what level of MQ was your test run on?
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
exerk
PostPosted: Thu Nov 09, 2006 2:38 am    Post subject: Reply with quote

Jedi Council

Joined: 02 Nov 2006
Posts: 6339

Vitor wrote:
...in v6 there's a separate process that cleans them up in addition to the MQGET. I swear I've read that some place but can't find the reference...


I can't find it either but thought that was a feature of WMQ on z/OS, unless they've ported the feature cross-platform. More than happy to be corrected!
_________________
It's puzzling, I don't think I've ever seen anything quite like this before...and it's hard to soar like an eagle when you're surrounded by turkeys.
Back to top
View user's profile Send private message
wschutz
PostPosted: Thu Nov 09, 2006 3:33 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Perhaps you're thinking of this post:
http://www.mqseries.net/phpBB2/viewtopic.php?t=23720&postdays=0&postorder=asc&highlight=expiry&start=0
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
Vitor
PostPosted: Thu Nov 09, 2006 3:54 am    Post subject: Reply with quote

Grand High Poobah

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

This explains why searching the documentation was proving fruitless!

I knew I'd seen something about it somewhere.

Many thanks for the clarification. I'd hate to change my doseage again...
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
FBTO
PostPosted: Thu Nov 09, 2006 7:24 am    Post subject: Reply with quote

Newbie

Joined: 08 Nov 2006
Posts: 5

Vitor wrote:
kevinf2349 wrote:
I was under the impression that the process of expiring messages (not deleteing them) goes on regradless of the MQGET process but it is only the MQGET the causes then to actually be deleted.


I think this changed - in v5.3 and below the MQGET determines if the message is expiried and deletes it, in v6 there's a separate process that cleans them up in addition to the MQGET. I swear I've read that some place but can't find the reference. Any kind posters who know where it's written down and share would prevent me needing my medication checked at the weekend......

FBTO - what level of MQ was your test run on?


If by level you mean what version, it is v5.3.
Back to top
View user's profile Send private message
Vitor
PostPosted: Thu Nov 09, 2006 7:29 am    Post subject: Reply with quote

Grand High Poobah

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

I did indeed. Apologies for my poor terminology.

Then AFAIK the expired messages are cleared off as a part of the MQGET. This whole background process thing seems to be me mis-remembering the post wschutz found.
_________________
Honesty is the best policy.
Insanity is the best defence.
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Nov 09, 2006 9:33 am    Post subject: Reply with quote

Guest




Expiry is documented in substantial detail in sc34-6596-00 MQ Application Programming Reference, Chapter 12, page 152. Included is behavior in both midrange and z/OS.
Back to top
FBTO
PostPosted: Thu Nov 09, 2006 11:57 am    Post subject: Reply with quote

Newbie

Joined: 08 Nov 2006
Posts: 5

bruce2359 wrote:
Expiry is documented in substantial detail in sc34-6596-00 MQ Application Programming Reference, Chapter 12, page 152. Included is behavior in both midrange and z/OS.


Thanks..

Is this document on the web anywhere?
Back to top
View user's profile Send private message
kevinf2349
PostPosted: Thu Nov 09, 2006 12:17 pm    Post subject: Reply with quote

Grand Master

Joined: 28 Feb 2003
Posts: 1311
Location: USA

Quote:
Is this document on the web anywhere?


Look above under the DOCUMENTATION button. (AP Ref)

Or you could Goggle it, or go the the IBM Website and get it, or get it of the install CD.

btw in my manual it is in Chapter 10 under the MQMD Structure
Back to top
View user's profile Send private message
FBTO
PostPosted: Mon Nov 13, 2006 8:46 am    Post subject: Reply with quote

Newbie

Joined: 08 Nov 2006
Posts: 5

kevinf2349 wrote:
Quote:
Is this document on the web anywhere?


Look above under the DOCUMENTATION button. (AP Ref)

Or you could Goggle it, or go the the IBM Website and get it, or get it of the install CD.

btw in my manual it is in Chapter 10 under the MQMD Structure


Thank you!!

And thanks to everyone for all of their help!!
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 » Need help understanding Expiry Time??
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.