Return-Path: Delivered-To: apmail-cocoon-dev-archive@www.apache.org Received: (qmail 83193 invoked from network); 14 Jul 2006 12:26:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 14 Jul 2006 12:26:21 -0000 Received: (qmail 81967 invoked by uid 500); 14 Jul 2006 12:26:17 -0000 Delivered-To: apmail-cocoon-dev-archive@cocoon.apache.org Received: (qmail 81862 invoked by uid 500); 14 Jul 2006 12:26:16 -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 81822 invoked by uid 99); 14 Jul 2006 12:26:16 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 14 Jul 2006 05:26:16 -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; Fri, 14 Jul 2006 05:26:16 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B1042410014 for ; Fri, 14 Jul 2006 12:24:14 +0000 (GMT) Message-ID: <16574786.1152879854722.JavaMail.jira@brutus> Date: Fri, 14 Jul 2006 05:24:14 -0700 (PDT) From: "Holger Wahlen (JIRA)" To: dev@cocoon.apache.org Subject: [jira] Created: (COCOON-1882) ZipArchiveSerializer causes "Too many open files" exception 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 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 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