memory leak in ConduitBridge (subscriptionMapByRemoteId)
--------------------------------------------------------

                 Key: AMQ-2530
                 URL: https://issues.apache.org/activemq/browse/AMQ-2530
             Project: ActiveMQ
          Issue Type: Bug
    Affects Versions: 5.3.0
            Reporter: Mario Lukica


I believe there is a memory leak in ConduitBridge - looks like 
DemandSubscriptions are not removed from subscriptionMapByRemoteId when remote 
RemoveInfo is received.

removeDemandSubscription normally removes subscription from 
subscriptionMapByRemoteId in DemanForwardingBridgeSupport, but method is 
overriden in ConduitBridge and only removes subscription from 
subscriptionMapByLocalId.

Leak becomes more significant when consumers are connecting very often (i.e. 
few connections per second), and bridge connection is stable (lasts for couple 
of days without reconnecting). MessageConsumer's are not pooled and 
subscriptions are created and removed often (and forwarded via bridge).



-- 
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