You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@commons.apache.org by bu...@apache.org on 2005/10/12 15:36:38 UTC

DO NOT REPLY [Bug 37042] New: - File upload Memory Issue

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG�
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=37042>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND�
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=37042

           Summary: File upload Memory Issue
           Product: Commons
           Version: 1.0 Final
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: major
          Priority: P2
         Component: File Upload
        AssignedTo: commons-dev@jakarta.apache.org
        ReportedBy: vimilsaju_varghese@infosys.com


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.

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.

---------------------------------------------------------------------
To unsubscribe, e-mail: commons-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: commons-dev-help@jakarta.apache.org