Uploaded image for project: 'Camel'
  1. Camel
  2. CAMEL-8053

Memory leak when adding/removing a lot of routes

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 2.14.0
    • 2.13.4, 2.14.1, 2.15.0
    • camel-core
    • None
    • Unknown

    Description

      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.

      Attachments

        1. testcase.zip
          4 kB
          Benjamin Graf

        Activity

          People

            njiang Willem Jiang
            graben Benjamin Graf
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: