[ 
https://issues.apache.org/jira/browse/QPID-978?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12592964#action_12592964
 ] 

Rudolf Polzer commented on QPID-978:
------------------------------------

Actually, I forgot one note...

trying to cancel the subscription, letting it automatically stop and 
resubscribing will yield an exception that subscriptions have to be unique

trying to run subscriptions.stop() works and returns to the caller... however, 
calling subscriptions.run() again then immediately returns, without ever 
calling received(). I suppose that would be the way I am supposed to leave the 
listener, but it does not work... I suppose the problem is that me using an 
exception to get out of the listener causes some object not to be freed on the 
server; apparently, some destructor should do that instead of relying on the 
SubscriptionManager's code to free that object, or there should be a try ... 
catch(...) { do that cleanup; throw; } block in the run() function of the 
SubscriptionManager.

> memory leak in C++ broker
> -------------------------
>
>                 Key: QPID-978
>                 URL: https://issues.apache.org/jira/browse/QPID-978
>             Project: Qpid
>          Issue Type: Bug
>          Components: C++ Broker
>    Affects Versions: M2, M2.1
>         Environment: Fedora 8 x86_64, qpid from redhat's package, compiled 
> from qpid 2.1 sources and from svn trunk
>            Reporter: Rudolf Polzer
>            Assignee: Gordon Sim
>         Attachments: client.cpp, server.cpp
>
>
> In a simple test program (basically, a qpid based echo server) used for 
> measuring the latency of qpid, I get a severe memory leak - the 4GB RAM of 
> this system are fully utilized after about two minutes.
> Also, subscriptions.stop() does not work right (subscriptions.run() then 
> appears to succeed, but will never receive a packet), which is why I had to 
> throw an exception to get out of the Listener after a packet was received on 
> the latency measuring client. I will try to attach a test program code for 
> this.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to