Uploaded image for project: 'Commons FileUpload'
  1. Commons FileUpload
  2. FILEUPLOAD-59

[fileupload] Memory Issue

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 1.0 Final
    • Fix Version/s: None
    • Labels:
      None
    • Environment:

      Operating System: All
      Platform: All

    • Bugzilla Id:
      37042

      Description

      The reason for out of memory exception is that a FileItem object is created for
      each request parameter whether it is file or an ordinary string parameter. the
      FileItem object has a field of type DeferredFileStream which is initialized to
      262144 bytes (256 Kb) so if there are around 1000 request parameters, around
      256 MB of space will be required to hold the request parameters even though
      most parameters may require only 8 to 10 bytes of memory for storage.

        Attachments

        1. UploadTest.zip
          312 kB
          Purushottam M. Nawle

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              vimilsaju_varghese@infosys.com Vimil Saju
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: