Uploaded image for project: 'Cocoon'
  1. Cocoon
  2. COCOON-2168

ResourceReader produces Java Heap Overflow when reading a huge resource

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.1.11, 2.2
    • 2.1.12, 2.3.0
    • * Cocoon Core
    • None
    • Normal
    • Components: Pipeline - 1.0.0-RC1
    • Components: Pipeline

    Description

      When reading a huge resource (i.e. 700MB file) the ResourceReader produces an overflow due to the BufferedOutputStream which is used (and forced to be used via AbstractReader). The BufferedOutputStream flushes only at the end (or when forced to), but overwrites the flush method to do nothing.

      As I don't know exactly where the BufferedOutputStream is used and what kind of impacts it will have to change it there I'm just going to fix the ResourceReader.

      Attachments

        1. test-case.tar.gz
          2 kB
          Felix Knecht
        2. ResourceReader.diff
          6 kB
          Felix Knecht

        Activity

          People

            joerg.heinicke@gmx.de Jörg Heinicke
            felixk Felix Knecht
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: