[ 
https://issues.apache.org/jira/browse/CAMEL-8053?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14214358#comment-14214358
 ] 

Willem Jiang commented on CAMEL-8053:
-------------------------------------

I just have a quick look at the ErrorHandlerBuilderRef.addErrorHandlers() call 
reference, as the ErrorhandlerBuilderRef is referenced by RouteDefintion, if 
the reference to RouteDefintion is not used by other object, the 
ErrorHanlderBuilderRef will be collected.
Do you have other evidence to show the leak? 

> Memory leak when adding/removing a lot of routes
> ------------------------------------------------
>
>                 Key: CAMEL-8053
>                 URL: https://issues.apache.org/jira/browse/CAMEL-8053
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-core
>    Affects Versions: 2.14.0
>            Reporter: Benjamin Graf
>            Assignee: Willem Jiang
>
> Dynamically adding/removing routes to camel causes registrations in 
> org.apache.camel.builder.ErrorHandlerBuilderRef.handlers (Map<RouteContext, 
> ErrorHandlerBuilder>) for RouteContext instances. Those never get removed and 
> can cause leaks if memory consuming objects are attached in the RouteContext 
> for example constant definitions.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to