Uploaded image for project: 'ERM Platform'
  1. ERM Platform
  2. ERM-297

File attachment over 10MB causes out of memory errors

    XMLWordPrintable

Details

    • ERM Sprint 67, ERM Sprint 77
    • Bienenvolk

    Description

      This occurs in mod-agreements, but will likely affect mod-licenses as well.

      Increasing the file upload limit and attempting to upload a file larger than 10MB returns the following failure:

      {"error":500,"message":"java.lang.OutOfMemoryError: Java heap space","stackTrace":["java.util.Arrays.copyOf(Arrays.java:3236)","java.io.ByteArrayOutputStream.grow(ByteArrayOutputStream.java:118)","java.io.ByteArrayOutputStream.ensureCapacity(ByteArrayOutputStream.java:93)","java.io.ByteArrayOutputStream.write(ByteArrayOutputStream.java:153)","org.olf.general.FileUploadController.$mt__postFileUploadRaw(FileUploadController.groovy:30)"]}
      

      This is more than likely due to the current database schema that causes the entire record to be loaded into memory when retrieved. In order to work around this, we will need to implement a schema that allows for a streaming retrieval.

      TestRail: Results

        Attachments

          Issue Links

            Activity

              People

                sosguthorpe Steve Osguthorpe
                kurt Kurt Nordstrom
                Votes:
                0 Vote for this issue
                Watchers:
                2 Start watching this issue

                Dates

                  Created:
                  Updated:
                  Resolved:

                  TestRail: Runs

                    TestRail: Cases