[
https://issues.apache.org/jira/browse/CAMEL-14000?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16936733#comment-16936733
]
Claus Ibsen commented on CAMEL-14000:
-------------------------------------
Can you also backport this to camel 2.x branches
> ServicePool can cause memory leak
> ---------------------------------
>
> Key: CAMEL-14000
> URL: https://issues.apache.org/jira/browse/CAMEL-14000
> Project: Camel
> Issue Type: Improvement
> Affects Versions: 2.24.2, 3.0.0.RC1
> Reporter: John Poth
> Assignee: John Poth
> Priority: Major
> Fix For: 2.25.0, 3.0.0.RC2, 2.24.3
>
> Time Spent: 10m
> Remaining Estimate: 0h
>
> The
> [ServicePool|[https://github.com/apache/camel/blob/master/core/camel-base/src/main/java/org/apache/camel/impl/engine/ServicePool.java#L50]]
> or (DefaultServicePool in 2.x) uses a unbounded ConcurrentHashMap to cash
> producers. This can cause memory leaks in highly dynamic routes using
> recipient lists creating many temporary endpoint which will never be evicted
> even when the route stops. Even though workarounds exists, we might consider
> using an LRUCache for eviction.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)