Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 74842 invoked from network); 7 Mar 2008 05:47:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 7 Mar 2008 05:47:19 -0000 Received: (qmail 56360 invoked by uid 500); 7 Mar 2008 05:47:15 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 56281 invoked by uid 500); 7 Mar 2008 05:47:15 -0000 Mailing-List: contact dev-help@cocoon.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@cocoon.apache.org List-Id: Delivered-To: mailing list dev@cocoon.apache.org Received: (qmail 56270 invoked by uid 99); 7 Mar 2008 05:47:15 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Mar 2008 21:47:15 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of agallardo@agssa.net designates 190.184.22.61 as permitted sender) Received: from [190.184.22.61] (HELO agssa.net) (190.184.22.61) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 07 Mar 2008 05:46:28 +0000 Received-SPF: pass (agssa.net: 10.0.0.7 is whitelisted) receiver=agssa.net; client-ip=10.0.0.7; helo=dev07.agssa.net; envelope-from=agallardo@agssa.net; x-software=spfmilter 0.97 http://www.acme.com/software/spfmilter/ with libspf2-1.0.0; Received: from dev07.agssa.net (dev07.agssa.net [10.0.0.7]) by agssa.net (8.14.1/8.14.1) with ESMTP id m275kdpb029400 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 6 Mar 2008 23:46:42 -0600 Message-ID: <47D0D6BF.3010401@agssa.net> Date: Thu, 06 Mar 2008 23:46:39 -0600 From: Antonio Gallardo Organization: AG Software, S. A. User-Agent: Thunderbird 2.0.0.12 (X11/20080226) MIME-Version: 1.0 To: dev@cocoon.apache.org Subject: Re: [#COCOON-2168] ResourceReader produces Java Heap Overflow when reading a huge resource - ASF JIRA References: <47CEC44A.80601@o-ms.com> <47CEC7FC.3030209@apache.org> <47CF6DB4.50200@gmx.de> <47D08520.2080806@gmx.de> In-Reply-To: <47D08520.2080806@gmx.de> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-3.0 (agssa.net [10.0.0.1]); Thu, 06 Mar 2008 23:46:42 -0600 (CST) X-Virus-Scanned: ClamAV 0.92.1/6156/Thu Mar 6 21:27:06 2008 on ags01.agssa.net X-Virus-Status: Clean X-Spam-Checker-Version: SpamAssassin 3.2.4 (2008-01-01) on ags01.agssa.net X-Virus-Checked: Checked by ClamAV on apache.org X-Old-Spam-Status: No, score=-3.6 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00, SPF_PASS autolearn=ham version=3.2.4 1MB Makes sense. Best Regards, Antonio Gallardo. Joerg Heinicke escribi�: > On 05.03.2008 23:06, Joerg Heinicke wrote: > >> We could argue about another default value than -1 though. Something >> like 1024^2. > > What do others think? Shall we change the default value from "buffer > everything" (which lead to the OutOfMemoryError [1]) to something more > "secure" in the sense of avoiding a potential source of error? Besides > mentioning it on the changes page we have to set it to a value that's > unlikely to be hit with a normal web application to change user > application's behavior only in extreme cases. That's why I suggested 1MB. > > Joerg > > [1] https://issues.apache.org/jira/browse/COCOON-2168