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 » IBM MQ API Support » Memory issues with MQBrowse (cursor) vs. MQGET

Post new topic  Reply to topic
 Memory issues with MQBrowse (cursor) vs. MQGET « View previous topic :: View next topic » 
Author Message
gpklos
PostPosted: Mon Aug 05, 2002 9:49 am    Post subject: Memory issues with MQBrowse (cursor) vs. MQGET Reply with quote

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
View user's profile Send private message
mqonnet
PostPosted: Thu Oct 31, 2002 8:13 am    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
gpklos
PostPosted: Fri Nov 01, 2002 3:20 am    Post subject: MQ browse vs get Reply with quote

Centurion

Joined: 24 May 2002
Posts: 108

Thanks!!
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 » IBM MQ API Support » Memory issues with MQBrowse (cursor) vs. MQGET
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.