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

MDC Logging causing OutOfMemory with large split

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Minor
    • Resolution: Fixed
    • Affects Version/s: 3.7.0
    • Fix Version/s: 3.7.2, 3.8.0
    • Component/s: camel-core-engine
    • Labels:
      None
    • Estimated Complexity:
      Unknown

      Description

      If using MDC logging and splitting a large amount of data it could cause OutOfMemory because internal memory consumption for MDC is growing enormous.

      DefaultReactiveExecutor.Worker.back in HeapDump seems to be correlated with MDCCallback

      See test case Main.java run with -Xmx1G -XX:+HeapDumpOnOutOfMemoryError

        Attachments

        1. java_pid13864.crc
          0.1 kB
          Benjamin Graf
        2. java_pid13864.004
          40.46 MB
          Benjamin Graf
        3. java_pid13864.003
          59.00 MB
          Benjamin Graf
        4. java_pid13864.002
          59.00 MB
          Benjamin Graf
        5. java_pid13864.001
          59.00 MB
          Benjamin Graf
        6. Main.java
          1.0 kB
          Benjamin Graf

          Activity

            People

            • Assignee:
              davsclaus Claus Ibsen
              Reporter:
              graben Benjamin Graf
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: