[ http://issues.apache.org/jira/browse/COCOON-1882?page=all ]
Holger Wahlen updated COCOON-1882:
----------------------------------
Attachment: ZipArchiveSerializer.diff
Here's what I've used for 2.1.7. (The line numbers have changed since due to
some other modifications, but the fix should be the same.)
> 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
> 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