Uploaded image for project: 'mod-invoice-storage'
  1. mod-invoice-storage
  2. MODINVOSTO-64

SPIKE: Saving documents with large size into DB

    XMLWordPrintable

    Details

    • Type: Story
    • Status: Open (View Workflow)
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: None
    • Labels:
      None
    • Template:
    • Development Team:
      Thunderjet

      Description

      Overview

      We made several load testing scenarios for uploading documents and found that it can prevent to OutOfMemoryError in the mod-invoice-storage.

      OutOfMemoryError occurs if uploading documents bigger than 5 Mb and standard heap 256Mb.

      Test cases:

      1. Tests (3 iterations) + 5 Mb request (300 iterations) with heap 256Mb_
      _Expected _: documents uploaded
      _Actual _: documents uploaded
      See details PR with details

      2. Tests (1 iterations) + 10 Mb request (30 iterations) with heap 256Mb
      _Expected _: documents uploaded
      Actual _: documents _OutOfMemoryError occurs and mod-invoice-storage crashed
      Note : If heap increase to 300Mb, then looks like the module begins to cope with documents and save them in the DB.

      3. Tests (1 iterations) + 20 Mb request (30 iterations) with heap 256Mb
      Expected : documents uploaded
      Actual : documents OutOfMemoryError occurs and mod-invoice-storage crashed
      Note : If heap increase to 500Mb, then looks like the module begins to cope with documents and save them in the DB.

      Acceptance Criteria

      Create and describe best solution for storing large documents
      Result of investigation should be there : Upload large documents wiki

        TestRail: Results

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                Taras_Spashchenko Taras Spashchenko
                Reporter:
                Andrei_Makaranka Andrei Makaranka
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:

                    TestRail: Runs

                      TestRail: Cases