Return-Path: Delivered-To: apmail-commons-issues-archive@locus.apache.org Received: (qmail 48895 invoked from network); 14 Aug 2008 09:36:07 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Aug 2008 09:36:07 -0000 Received: (qmail 23709 invoked by uid 500); 14 Aug 2008 09:36:06 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 23251 invoked by uid 500); 14 Aug 2008 09:36:05 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 23240 invoked by uid 99); 14 Aug 2008 09:36:05 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2008 02:36:05 -0700 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Aug 2008 09:35:17 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 75BE9234C1B6 for ; Thu, 14 Aug 2008 02:35:45 -0700 (PDT) Message-ID: <894335610.1218706545481.JavaMail.jira@brutus> Date: Thu, 14 Aug 2008 02:35:45 -0700 (PDT) From: "Purushottam M. Nawle (JIRA)" To: issues@commons.apache.org Subject: [jira] Commented: (FILEUPLOAD-59) [fileupload] Memory Issue MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ 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.