|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Message Size |
« View previous topic :: View next topic » |
Author |
Message
|
offshore |
Posted: Tue May 13, 2003 6:06 am Post subject: Message Size |
|
|
 Master
Joined: 20 Jun 2002 Posts: 222
|
All,
Specs - Windows 2000 MQ 5.2.1 & 5.3
z/OS - MQ 2.1
Is there a way to determing message size of a message being passed or that is sitting in a queue?
We're in the process of upgrading to MQ for z/OS 5.3 and wanting to implement Queue Sharing groups. Its my understanding that message size is limited to 63K?
Thanks! |
|
Back to top |
|
 |
bduncan |
Posted: Tue May 13, 2003 10:38 am Post subject: |
|
|
Padawan
Joined: 11 Apr 2001 Posts: 1554 Location: Silicon Valley
|
Well, one trick I've used in the past is the following:
Do an MQGET providing a zero byte buffer for the message, and make sure that the GMO options are set such that you won't accept truncated messages. Presumably all the messages on the queue have *some* content, so they will all be too big for your buffer. The MQGET will fail, but you will have an MQMD structure with the size of the message in it, whereas the message itself is still on the queue.
Repeat this for every message on the queue, and you can get the size of them all. You can achieve the same effect by browsing all of the messages, but this is much slower since you are actually filling all your datastructures with the message content, whereas nothing needs to be loaded into memory if the queue manager sees that your buffer isn't big enough on an MQGET call. _________________ Brandon Duncan
IBM Certified MQSeries Specialist
MQSeries.net forum moderator |
|
Back to top |
|
 |
eknathv |
Posted: Tue May 13, 2003 10:29 pm Post subject: Re: Message Size |
|
|
Apprentice
Joined: 14 Aug 2002 Posts: 27 Location: Bangalore
|
Hi,
As Brandon suggested thats the very smart way to find message lenghth of any message in queue.
If you are looking for Max Message length of a queue that you can get by MQSC command or MQINQ call.
On MQSeries V5 and above max msg length is 100mb. if you are doing queue sharing I beleive max msg length could be 100mb.
Regards,
Eknath _________________ Eknath Vashishtha |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|