Menu

#17 Large file uploads mishandled

open-accepted
clnt-struts (2)
5
2004-01-07
2003-10-07
No

When files are uploaded, they are temporarily stored on
the heap. When large files are uploaded, system runs
out of memory.

Discussion

  • Stephen Davidson

    Logged In: YES
    user_id=490856

    Proposed solution:
    1) Save immediately to a temporary file
    2) Add a custom serializable attribute to the parameter

    Custom Serializable would have;
    1) File Name
    2) File Handle
    3) When being serialized/deserialized, would read/write the
    file to the Stream.

    NOTE: Comments can be posted to this bug report!

     
  • Stephen Davidson

    Logged In: YES
    user_id=490856

    Starting to deploy this.
    Also, now doing full demos. Next demo is using multiple
    1.5GB+ files.

    Anybody wants to make suggestions, NOW IS THE TIME!

     
  • Stephen Davidson

    • assigned_to: nobody --> northgorky
     
  • Stephen Davidson

    • status: open --> open-accepted
     
  • Stephen Davidson

    Logged In: YES
    user_id=490856

    Should probably comment that this also applies to downloads.

     
  • Stephen Davidson

    Logged In: YES
    user_id=490856

    Struts is limiting file sizes to 250MB!!!! Default Apache
    config setting, which Keel will need to override. Apache is
    actually accepting/rejecting the files in front of Keel even
    seeing them, so having a check in Keel is redundant. Keel
    (specifically, clnt-struts) needs to configure the Apache
    utilities BEFORE the request is sent to upload the file.
    This should probably be done on startup.

     

Log in to post a comment.

MongoDB Logo MongoDB