You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@camel.apache.org by "Otavio Rodolfo Piske (Jira)" <ji...@apache.org> on 2024/01/10 08:42:00 UTC
[jira] [Commented] (CAMEL-20301) Camel retains objects when restarting route via policy
[ https://issues.apache.org/jira/browse/CAMEL-20301?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17805017#comment-17805017 ]
Otavio Rodolfo Piske commented on CAMEL-20301:
----------------------------------------------
It was mistakenly associated with CAMEL-20231 in a commit message, so adding this relationship in case we need to search in the future.
> Camel retains objects when restarting route via policy
> ------------------------------------------------------
>
> Key: CAMEL-20301
> URL: https://issues.apache.org/jira/browse/CAMEL-20301
> Project: Camel
> Issue Type: Bug
> Components: came-core
> Affects Versions: 4.0.3
> Reporter: Sebastian Brandt
> Assignee: Otavio Rodolfo Piske
> Priority: Major
> Fix For: 4.4.0
>
>
> When restarting a route using a RoutePolicy, Camel seems to retain objects related to the stopped route, preventing the GC from reclaiming those.
> Heap dump analysis indicated that the objects are retained by org.apache.camel.impl.engine.DefaultRoute.services
> I've created a minimal reproducer in [https://github.com/sebastian-brandt/RoutePolicyIssue] using a route with a seda consumer.
> The issue becomes more apparent when the restarted route uses a consumer component that itself uses more memory (e.g. netty).
> The accumulated old objects eventually lead to OOM error.
--
This message was sent by Atlassian Jira
(v8.20.10#820010)