Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 41674 invoked from network); 24 Mar 2005 14:09:22 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 24 Mar 2005 14:09:22 -0000 Received: (qmail 18957 invoked by uid 500); 24 Mar 2005 14:09:04 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 18737 invoked by uid 500); 24 Mar 2005 14:09:03 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 18724 invoked by uid 99); 24 Mar 2005 14:09:03 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: local policy) Received: from 200-184-60-20.powerlogic.com.br (HELO powerlogic.com.br) (200.184.60.20) by apache.org (qpsmtpd/0.28) with SMTP; Thu, 24 Mar 2005 06:09:02 -0800 Received: (qmail 1833 invoked by uid 0); 24 Mar 2005 14:08:57 -0000 Received: from alvim@powerlogic.com.br by plcbhserv01 by uid 303 with qmail-scanner-1.22c (uvscan: v4.3.20/v4357. Clear:RC:1(192.168.1.99):. Processed in 4.942076 secs); 24 Mar 2005 14:08:57 -0000 Received: from unknown (HELO alvim) (192.168.1.99) by plcbhserv01.powerlogic.com.br with SMTP; 24 Mar 2005 14:08:51 -0000 From: "Paulo Alvim" To: "Tomcat Users List" , "Elihu Smails" Subject: RES: commons-fileupload memory problem Date: Thu, 24 Mar 2005 11:10:33 -0300 Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook IMO, Build 9.0.2416 (9.0.2910.0) X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1441 In-Reply-To: <9f066ee9050324054065db5251@mail.gmail.com> Importance: Normal X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N We had the same problem and after debugging a few commons-fileupload classes (and Struts RequestProcessor) we could find that 250-500K of RAM was being used per "request property" (in "multipart" form, an object is created for each form field!). Since our form had the FormFile field plus 35 "ordinary" others...our request was consuming 20MB! We don't know the reason yet...so we had to isolate the FormFile field in a separated web-page...maybe we could use two form in the same page with the same result. Paulo Alvim Powerlogic - Brazil -----Mensagem original----- De: Elihu Smails [mailto:elihusmails@gmail.com] Enviada em: quinta-feira, 24 de mar�o de 2005 10:40 Para: Tomcat Users List Assunto: commons-fileupload memory problem I am trying to use the commons-fileupload classes and cannot figure out how to keep my uploads from getting stored in memory. I am using the following methods: DefaultFileItemFactory fileItemFactory = new DefaultFileItemFactory( 10, new File("/tmp") ); DiskFileUpload upload = new DiskFileUpload( fileItemFactory ); When I run tomcat using JDK 1.5's jconsole program and upload a file, my memory usage jumps to about 10x the size of the attachment. Has anyone else used the library successfully? TIA. --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org