Uploaded image for project: 'ServiceMix'
  1. ServiceMix
  2. SM-1349

SimpleFlatFileMarshaler runs out of memory on big files

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 3.2.2, 3.3
    • 3.2.2, 3.3
    • servicemix-core
    • None
    • Patch Available
    • Unit Test Broken

    Description

      unlike DefaultFileMarshaler, SimpleFlatFileMarshaler creates the whole resulting XML in memory. This causes out of memory exception. See the test case and the fix in the attachments.

      The idea is to wrap the input stream, so the conversion is done line-by-line when (and if) the normalized message content is read. Attention is payed to keep backward compatibility so protected members behave the same.

      Attachments

        1. ASF.LICENSE.NOT.GRANTED--sffm.patch
          13 kB
          Andrew Skiba
        2. ASF.LICENSE.NOT.GRANTED--sffm_test.patch
          7 kB
          Andrew Skiba

        Activity

          People

            lhe Lars Heinemann
            skibaa Andrew Skiba
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: