Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 14128 invoked from network); 14 Feb 2008 14:53:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 14 Feb 2008 14:53:34 -0000 Received: (qmail 53411 invoked by uid 500); 14 Feb 2008 14:53:25 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 53273 invoked by uid 500); 14 Feb 2008 14:53:24 -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 53239 invoked by uid 99); 14 Feb 2008 14:53:24 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2008 06:53:24 -0800 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.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2008 14:53:00 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CD850714074 for ; Thu, 14 Feb 2008 06:53:08 -0800 (PST) Message-ID: <12918261.1203000788839.JavaMail.jira@brutus> Date: Thu, 14 Feb 2008 06:53:08 -0800 (PST) From: "Felix Knecht (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Updated: (COCOON-2168) ResourceReader produces Java Heap Overflow when reading a huge resource In-Reply-To: <13093861.1202993228991.JavaMail.jira@brutus> 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/COCOON-2168?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Felix Knecht updated COCOON-2168: --------------------------------- Attachment: test-case.tar.gz ResourceReader.diff Patch for ResourceReader Patch with test block > ResourceReader produces Java Heap Overflow when reading a huge resource > ----------------------------------------------------------------------- > > Key: COCOON-2168 > URL: https://issues.apache.org/jira/browse/COCOON-2168 > Project: Cocoon > Issue Type: Bug > Components: * Cocoon Core > Affects Versions: 2.2-dev (Current SVN) > Reporter: Felix Knecht > Assignee: Felix Knecht > Attachments: ResourceReader.diff, test-case.tar.gz > > > When reading a huge resource (i.e. 700MB file) the ResourceReader produces an overflow due to the BufferedOutputStream which is used (and forced to be used via AbstractReader). The BufferedOutputStream flushes only at the end (or when forced to), but overwrites the flush method to do nothing. > As I don't know exactly where the BufferedOutputStream is used and what kind of impacts it will have to change it there I'm just going to fix the ResourceReader. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.