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

MDC Logging causing OutOfMemory with large split

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 3.7.0
    • 3.7.2, 3.8.0
    • came-core
    • None
    • 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.001
          59.00 MB
          Benjamin Graf
        2. java_pid13864.002
          59.00 MB
          Benjamin Graf
        3. java_pid13864.003
          59.00 MB
          Benjamin Graf
        4. java_pid13864.004
          40.46 MB
          Benjamin Graf
        5. java_pid13864.crc
          0.1 kB
          Benjamin Graf
        6. Main.java
          1.0 kB
          Benjamin Graf

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: