Issue Details (XML | Word | Printable)

Key: FILEUPLOAD-59
Type: Bug Bug
Status: Closed Closed
Resolution: Fixed
Priority: Major Major
Assignee: Unassigned
Reporter: Vimil Saju
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Commons FileUpload

[fileupload] Memory Issue

Created: 12/Oct/05 10:36 PM   Updated: 16/Dec/08 11:21 AM
Return to search
Component/s: None
Affects Version/s: 1.0 Final
Fix Version/s: None

Time Tracking:
Not Specified

File Attachments:
  Size
Zip Archive Licensed for inclusion in ASF works UploadTest.zip 2008-08-14 09:32 AM Purushottam M. Nawle 312 kB
Environment:
Operating System: All
Platform: All

Bugzilla Id: 37042


 Description  « Hide
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.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
There are no subversion log entries for this issue yet.