qpid-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gcutuli <giuseppe.cut...@numonyx.com>
Subject RE: qpid::messaging decode memory leak
Date Tue, 16 Nov 2010 16:52:30 GMT

My environment is:
- Win XP/SP3
- QPID messaging 0.7
- c++ under VS2008 Express Edition

I monitored Task Manager during the execution of the application, and I
noticed that, after a number of calls to "decode",  the used memory
increased by 4 bytes.
This is the code I wrote:

string MQPIDHelper::GetMsgContent(Message msg)
	Variant::Map fields;
	decode(msg, fields);
	Variant::Map msgBody(fields["Body"].asMap());		
	return msgBody["content"].asString();				

where MQPIDHelper is a static class.

Please note that I need to decode the message (msg) to retrieve its content
as map.
"GetMsgContent" is invoked every time a new message is fetched from the
I tried to execute a scenario were a publisher send thousands of messages
and the subscribers just receive and log them. 
Thank you.
View this message in context: http://apache-qpid-users.2158936.n2.nabble.com/qpid-messaging-decode-memory-leak-tp5744226p5744528.html
Sent from the Apache Qpid users mailing list archive at Nabble.com.

Apache Qpid - AMQP Messaging Implementation
Project:      http://qpid.apache.org
Use/Interact: mailto:users-subscribe@qpid.apache.org

View raw message