Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 1503 invoked from network); 18 Jul 2006 04:21:25 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 18 Jul 2006 04:21:25 -0000 Received: (qmail 25296 invoked by uid 500); 18 Jul 2006 04:21:23 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 25237 invoked by uid 500); 18 Jul 2006 04:21:23 -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 25224 invoked by uid 99); 18 Jul 2006 04:21:23 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2006 21:21:23 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [209.237.227.198] (HELO brutus.apache.org) (209.237.227.198) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 17 Jul 2006 21:21:22 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4ACE3714294 for ; Tue, 18 Jul 2006 04:19:15 +0000 (GMT) Message-ID: <19821668.1153196355303.JavaMail.jira@brutus> Date: Mon, 17 Jul 2006 21:19:15 -0700 (PDT) From: "Antonio Gallardo (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Assigned: (COCOON-1882) ZipArchiveSerializer causes "Too many open files" exception In-Reply-To: <16574786.1152879854722.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 X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/COCOON-1882?page=all ] Antonio Gallardo reassigned COCOON-1882: ---------------------------------------- Assignee: Antonio Gallardo > ZipArchiveSerializer causes "Too many open files" exception > ----------------------------------------------------------- > > Key: COCOON-1882 > URL: http://issues.apache.org/jira/browse/COCOON-1882 > Project: Cocoon > Issue Type: Bug > Components: * Cocoon Core > Affects Versions: 2.1.8, 2.1.9, 2.1.10-dev (current SVN) > Reporter: Holger Wahlen > Assigned To: Antonio Gallardo > Attachments: ZipArchiveSerializer.diff > > > When ZipArchiveSerializer is used to zip a big number of files, the OS-/Java-dependent limit for open file descriptors can be exceeded, resulting in a corrupt zip file and a "Too many open files" exception in the log. > Apparenty the reason for this is that the InputStreams created in the addEntry method aren't cleaned up properly. If I add a call > sourceInput.close(); > after the output has been written, the problem doesn't occur any more. (I've had to do this in the 2.1.7 we're working with, hence no patch file.) -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira