You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@ant.apache.org by bu...@apache.org on 2003/11/15 00:13:57 UTC

DO NOT REPLY [Bug 24720] New: - repeated cause OutOfMemeory exception

DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24720>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND 
INSERTED IN THE BUG DATABASE.

http://nagoya.apache.org/bugzilla/show_bug.cgi?id=24720

repeated <antcall/> cause OutOfMemeory exception

           Summary: repeated <antcall/> cause OutOfMemeory exception
           Product: Ant
           Version: 1.5.1
          Platform: Sun
        OS/Version: Solaris
            Status: NEW
          Severity: Major
          Priority: Other
         Component: Core tasks
        AssignedTo: dev@ant.apache.org
        ReportedBy: francisip@yahoo.com


If <antcall/> is invoked many times in the same JVM, the JVM may throw an 
OutOfMemeory exception.

Problem can be easily reproduced by the following simple build file:
<project name="mybuild" default="run" >

    <target name="echo" >
         <echo message="Hello,world" />
    </target>

   <target name="run">
        <antcall target="echo" />
        <antcall target="echo" />
        <!-- repeat 1000 times -->
   </target>

</project>


Errors reported :
echo:
     [echo] Hello, world
  [antcall] calling target echo in build 
file /private/fip/viewwork/fip_j2ee6/tklocal/build1.xml

[ ... repeated many times ...]
echo:
     [echo] Hello, world
  [antcall] calling target echo in build 
file /private/fip/viewwork/fip_j2ee6/tklocal/build1.xml

BUILD FAILED
java.lang.OutOfMemoryError

Total time: 1 minute 31 seconds
java.lang.OutOfMemoryError

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org