|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Memory issues with MQBrowse (cursor) vs. MQGET |
« View previous topic :: View next topic » |
Author |
Message
|
gpklos |
Posted: Mon Aug 05, 2002 9:49 am Post subject: Memory issues with MQBrowse (cursor) vs. MQGET |
|
|
Centurion
Joined: 24 May 2002 Posts: 108
|
We have an application that is a client which removes messages from a queue. The process basically reads an "error queue" using MQBROWSE and then removes the message if another condition occurs. We remove the message with the MESSAGE_UNDER_CURSOR option. Once we are done with the error queue we read another queue using just an MQGET, which removes the message from the queue immediately. We ran into a case where the 'C' program which does the processing just quits when it is processing the "error" queue and there are more than 763 messages on the queue. However it can remove any number of messages from the other queue. The only difference between the queues is we browse, then remove the messages from the first queue and just use a destructive get from the second queue. We think it is a memory issue with the C program. Does the MQBrowse/Cursor take up more memory than just doing an MQget? ie. Does it take more memory to Browse, then delete 800 messages vs just destructively getting 800 messages? Does the cursor mean a pointer is held to all the records?
Any help would really be appreciated.
Gary |
|
Back to top |
|
 |
mqonnet |
Posted: Thu Oct 31, 2002 8:13 am Post subject: |
|
|
 Grand Master
Joined: 18 Feb 2002 Posts: 1114 Location: Boston, Ma, Usa.
|
Gary,
You forgot to mention as to whats the error you were getting from readin/browing the "error queue". Whats the reason code.
As for performance/memory issues with browse or a destructive get, it depends on platform too. Because the implementation of browse cursor and a destructive gets on different platform is different. My understanding is that there is a pointer rather than a buffer that holds all the 800 messages in memory for a browse. And hence, as far as performance issue goes, both, browse cursor and destructive get should be the same.
Hope this helps.
Cheers.
Kumar _________________ IBM Certified WebSphere MQ V5.3 Developer
IBM Certified WebSphere MQ V5.3 Solution Designer
IBM Certified WebSphere MQ V5.3 System Administrator |
|
Back to top |
|
 |
gpklos |
Posted: Fri Nov 01, 2002 3:20 am Post subject: MQ browse vs get |
|
|
Centurion
Joined: 24 May 2002 Posts: 108
|
|
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
|
|
|
|