ant-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject DO NOT REPLY [Bug 42696] OutOfMemoryError using unzip Task
Date Tue, 15 Sep 2009 17:45:56 GMT

--- Comment #1 from David Schlosnagle <> 2009-09-15 10:45:53 PDT ---
Created an attachment (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,
File, File) code and it does not appear to be closing the input stream (and in
turn the instance for the returned 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:
------- You are receiving this mail because: -------
You are the assignee for the bug.

View raw message