ant-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tommy Nordgren <tommy.nordg...@chello.se>
Subject Re: OutOfMemoryError on large complex build
Date Tue, 14 Mar 2006 21:17:49 GMT
You might try checking exactly which java version you are using. I  
think some releases have memory leaks.
On 14 mar 2006, at 17.45, Mike Miller wrote:

> I am trying to resolve an OutOfMemoryError within our build  
> process.  We have a work-around but would really like to be able to  
> run our ‘standard’ targets to get everything built.  We have a 3  
> layer file structure for components, modules then submodules.  Our  
> compile target is compile.all.all which calls compile.all for the  
> the modules, which then calls compile on the submodules, using subant.
>
>
>
>
>
> Ant 1.6.2
>
> JDK 1.4.2_08
>
> XDoclet 1.2B4
>
>
>
> Have set ANT_OPTS=-Xmx1024m and our compile tasks use fork=”true”.
>
>
>
> I also included a call to a java task that calls the Runtime class  
> to get the memory values in hopes that it might provide some  
> assistance.  I placed this before the javac and the ejb tasks  
> (which calls ejbdoclet).  Below is the output just before the  
> failure in the ejbdoclet task.  I have run the failure with both –v  
> and –d but nothing jumps out at me as significantly wrong – but  
> then again – I am not an Ant expert!
>
>
>
> The error seems to be coming when we run the ejbdoclet task
>
>
>
> Looking for suggestions and any assistance!   Thanks in advance.
>
>
>
> ********   output  **************
>
>
>
>   [java] Free Memory=32909504 Total Memory=70029312 Max  
> Memory=1065484288
>
>
>
> BUILD FAILED
>
> C:\PPOSDevelopment\2006.1\build.xml:84: The following error  
> occurred while executing this line:
>
> C:\PPOSDevelopment\2006.1\PCOS\build.xml:48: The following error  
> occurred while executing this line:
>
> java.lang.OutOfMemoryError
>
>         at  
> org.apache.tools.ant.ProjectHelper.addLocationToBuildException 
> (ProjectHelper.java:539)
>
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388)
>
>         at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java: 
> 265)
>
>         at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java: 
> 195)
>
>         at org.apache.tools.ant.UnknownElement.execute 
> (UnknownElement.java:275)
>
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>
>         at org.apache.tools.ant.Project.executeTarget(Project.java: 
> 1214)
>
>         at org.apache.tools.ant.Project.executeTargets(Project.java: 
> 1062)
>
>         at org.apache.tools.ant.Main.runBuild(Main.java:673)
>
>         at org.apache.tools.ant.Main.startAnt(Main.java:188)
>
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
>
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
>
> Caused by: C:\PPOSDevelopment\2006.1\PCOS\build.xml:48: The  
> following error occurred while executing
>
> java.lang.OutOfMemoryError
>
>         at  
> org.apache.tools.ant.ProjectHelper.addLocationToBuildException 
> (ProjectHelper.java:539)
>
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388)
>
>         at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java: 
> 265)
>
>         at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java: 
> 195)
>
>         at org.apache.tools.ant.UnknownElement.execute 
> (UnknownElement.java:275)
>
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>
>         at org.apache.tools.ant.Project.executeTarget(Project.java: 
> 1214)
>
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>
>         ... 12 more
>
> Caused by: java.lang.OutOfMemoryError
>
>         at org.apache.tools.ant.Project.executeTarget(Project.java: 
> 1223)
>
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>
>         ... 20 more
>
> Caused by: java.lang.OutOfMemoryError
>
> --- Nested Exception ---
>
> C:\PPOSDevelopment\2006.1\PCOS\build.xml:48: The following error  
> occurred while executing this line:
>
> java.lang.OutOfMemoryError
>
>         at  
> org.apache.tools.ant.ProjectHelper.addLocationToBuildException 
> (ProjectHelper.java:539)
>
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:388)
>
>         at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java: 
> 265)
>
>         at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java: 
> 195)
>
>         at org.apache.tools.ant.UnknownElement.execute 
> (UnknownElement.java:275)
>
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>
>         at org.apache.tools.ant.Project.executeTarget(Project.java: 
> 1214)
>
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>
>         at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java: 
> 265)
>
>         at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java: 
> 195)
>
>         at org.apache.tools.ant.UnknownElement.execute 
> (UnknownElement.java:275)
>
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>
>         at org.apache.tools.ant.Project.executeTarget(Project.java: 
> 1214)
>
>         at org.apache.tools.ant.Project.executeTargets(Project.java: 
> 1062)
>
>         at org.apache.tools.ant.Main.runBuild(Main.java:673)
>
>         at org.apache.tools.ant.Main.startAnt(Main.java:188)
>
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
>
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
>
> Caused by: java.lang.OutOfMemoryError
>
>         at org.apache.tools.ant.Project.executeTarget(Project.java: 
> 1223)
>
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>
>         ... 20 more
>
> Caused by: java.lang.OutOfMemoryError
>
> --- Nested Exception ---
>
> java.lang.OutOfMemoryError
>
>         at org.apache.tools.ant.Project.executeTarget(Project.java: 
> 1223)
>
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>
>         at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java: 
> 265)
>
>         at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java: 
> 195)
>
>         at org.apache.tools.ant.UnknownElement.execute 
> (UnknownElement.java:275)
>
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>
>         at org.apache.tools.ant.Project.executeTarget(Project.java: 
> 1214)
>
>         at org.apache.tools.ant.taskdefs.Ant.execute(Ant.java:386)
>
>         at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java: 
> 265)
>
>         at org.apache.tools.ant.taskdefs.SubAnt.execute(SubAnt.java: 
> 195)
>
>         at org.apache.tools.ant.UnknownElement.execute 
> (UnknownElement.java:275)
>
>         at org.apache.tools.ant.Task.perform(Task.java:364)
>
>         at org.apache.tools.ant.Target.execute(Target.java:341)
>
>         at org.apache.tools.ant.Target.performTasks(Target.java:369)
>
>         at org.apache.tools.ant.Project.executeTarget(Project.java: 
> 1214)
>
>         at org.apache.tools.ant.Project.executeTargets(Project.java: 
> 1062)
>
>         at org.apache.tools.ant.Main.runBuild(Main.java:673)
>
>         at org.apache.tools.ant.Main.startAnt(Main.java:188)
>
>         at org.apache.tools.ant.launch.Launcher.run(Launcher.java:196)
>
>         at org.apache.tools.ant.launch.Launcher.main(Launcher.java:55)
>
> Caused by: java.lang.OutOfMemoryError
>
> --- Nested Exception ---
>
> java.lang.OutOfMemoryError
>
>
>
>
>
> Mike Miller
>
> Phone: (214) 277-7759
>
> HYPERLINK "mailto:mike.miller@jda.com"mike.miller@jda.com
>
> 7501 Esters Blvd
>
> Irving, Tx 75063
>
>
>
>
> -- 
> No virus found in this outgoing message.
> Checked by AVG Free Edition.
> Version: 7.1.385 / Virus Database: 268.2.2/280 - Release Date:  
> 3/13/2006
>

------------------------------------------------------
"Home is not where you are born, but where your heart finds peace" -
Tommy Nordgren, "The dying old crone"
tommy.nordgren@chello.se



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


Mime
View raw message