commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Purushottam M. Nawle (JIRA)" <j...@apache.org>
Subject [jira] Commented: (FILEUPLOAD-59) [fileupload] Memory Issue
Date Thu, 14 Aug 2008 09:35:45 GMT

    [ https://issues.apache.org/jira/browse/FILEUPLOAD-59?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12622495#action_12622495
] 

Purushottam M. Nawle commented on FILEUPLOAD-59:
------------------------------------------------

Along with this the jar provides a base servlet class which does the file uploading. The user
needs to extend this class to add just business logic such as implementing validation, process
the uploaded file etc.

> [fileupload] Memory Issue
> -------------------------
>
>                 Key: FILEUPLOAD-59
>                 URL: https://issues.apache.org/jira/browse/FILEUPLOAD-59
>             Project: Commons FileUpload
>          Issue Type: Bug
>    Affects Versions: 1.0 Final
>         Environment: Operating System: All
> Platform: All
>            Reporter: Vimil Saju
>         Attachments: UploadTest.zip
>
>
> 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.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message