[
https://issues.apache.org/activemq/browse/CAMEL-1771?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=52538#action_52538
]
Claus Ibsen commented on CAMEL-1771:
------------------------------------
Ah cool with your finding.
I will fix the ProducerCache to be size limited so it wont grow forever. Using
a LRUCache instead of Map, with a default of 1000.
> recipientList leaks memory
> --------------------------
>
> Key: CAMEL-1771
> URL: https://issues.apache.org/activemq/browse/CAMEL-1771
> Project: Apache Camel
> Issue Type: Bug
> Affects Versions: 1.6.0, 1.6.1
> Reporter: Andres
>
> I found that RecipientList leaks memory .
> The problem is that RecipientList stores endpoints in producerCache and cache
> key computed by using getEndpointUri. If endpoint uris are unique ( as we
> have ) then every new entry will stored in cache and will never released.
> In example we are using recipientList to send messages to the external http
> server, every url contains unique query parameters therefor every
> recipientList entry will create new producer ant that producer will stored in
> producerCache.
> In our system recipientList wlil leak about 20M per day
> Unfortunately I was unable to find any workaround
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.