https://issues.apache.org/bugzilla/show_bug.cgi?id=42696
--- Comment #1 from David Schlosnagle <[email protected]> 2009-09-15 10:45:53 PDT --- Created an attachment (id=24269) --> (https://issues.apache.org/bugzilla/attachment.cgi?id=24269) Close zip entry input streams I am encountering a similar issue using the unzip task on IBM AIX using Ant 1.6.5 and Java 1.5 and 1.6. The error I see is: "java.lang.OutOfMemoryError: ZIP004:OutOfMemoryError, MEM_ERROR in inflateInit2". We are performing several unzip tasks, including extracting a large WAR (~200MB) from a large EAR (~500MB). We are using ANT_OPTS="-Xms384M -Xmx1024M" I looked into the org.apache.tools.ant.taskdefs.Expand.expandFile(FileUtils, File, File) code and it does not appear to be closing the input stream (and in turn the java.util.zip.Inflater instance for the returned java.util.zip.InflaterInputStream) for the zip entry, so I'm wondering if this is part of the problem. I've attached a patch to close each zip input stream. -- Configure bugmail: https://issues.apache.org/bugzilla/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the assignee for the bug.
