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 issue

Post new topic  Reply to topic
 memory issue « View previous topic :: View next topic » 
Author Message
boutwater
PostPosted: Wed Jan 10, 2007 11:38 am    Post subject: memory issue Reply with quote

Novice

Joined: 12 Sep 2005
Posts: 12

I'm having an issue with the memory usage continually increasing until my application is shut down. I've tried several different things, but have not been successful in stopping it. I check the memory usage using the task manager and clicking on the processes tab. it increases by 4k each time the function is called. Does anyone have any ideas what might be causing this? After a while, the program will use up the computers memory and need to be shut down. Thanks,

Ben

QueueResponse = new TMQQueue(Parent);
QueueResponse->ConnectTo(QueueManager->AccessQueue(WideString("SHIP.SCAN.STATUS.REPLY"),MQOO_INPUT_AS_Q_DEF));
try {
char DataStr[255];
DateTimeStamp(TempStamp);
GetMsgResponse->ConnectTo(MQSes->AccessMessage());
QueueResponse->Get(GetMsgResponse->GetDefaultInterface());
AnsiString Response;
if (QueueResponse->CompletionCode == MQCC_FAILED) {
if (QueueResponse->ReasonCode != 2033) {
TempS.sprintf("Queue not connected. Reason: %d %s",QueueResponse->ReasonCode,AnsiString(QueueResponse->ReasonName));
OutToMemo(flt_System,dtl_FullDebug,TempS.c_str());
}
} else {
Response = GetMsgResponse->ReadString(GetMsgResponse->MessageLength);

//do stuff with message

} __finally {
delete QueueResponse;
}
}
Back to top
View user's profile Send private message
neliosam
PostPosted: Fri Jan 12, 2007 5:58 am    Post subject: Reply with quote

Novice

Joined: 08 Jan 2007
Posts: 13
Location: Brazil

Sounds like a memory leak.
Is your application is disconecting properly?

I´ve a similar problem using java and have to foce garbage colection to work.

There is a tool (Process Explorer) on sysinternals.com that might help you track the problem much better than windows task manager.


link
http://www.microsoft.com/technet/sysinternals/Processesandthreadsutilities.mspx

good luck
_________________
neliosam
MQSeries Certified Administrator
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » memory issue
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.