|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
memory issue |
« View previous topic :: View next topic » |
Author |
Message
|
boutwater |
Posted: Wed Jan 10, 2007 11:38 am Post subject: memory issue |
|
|
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 |
|
 |
neliosam |
Posted: Fri Jan 12, 2007 5:58 am Post subject: |
|
|
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 |
|
 |
|
|
 |
|
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
|
|
|
|