[
http://issues.apache.org/jira/browse/CACTUS-59?page=comments#action_12317599 ]
Catalin Hritcu commented on CACTUS-59:
--------------------------------------
I got the same OutOfMemoryError.
Hardware config: 3GHz, 512MB, WinXP
Software config: Ant 1.6.4, Cactus 1.7
I got the following exception when trying to cactify a 24MB war file.
java.lang.OutOfMemoryError: Java heap space
at org.apache.tools.ant.Project.executeSortedTargets(Project.java:1225)
at org.apache.tools.ant.Project.executeTarget(Project.java:1185)
at org.apache.tools.ant.helper.DefaultExecutor.executeTargets(DefaultExe
cutor.java:40)
at org.apache.tools.ant.Project.executeTargets(Project.java:1068)
at org.apache.tools.ant.Main.runBuild(Main.java:668)
at org.apache.tools.ant.Main.startAnt(Main.java:187)
at org.apache.tools.ant.launch.Launcher.run(Launcher.java:246)
at org.apache.tools.ant.launch.Launcher.main(Launcher.java:67)
Caused by: java.lang.OutOfMemoryError: Java heap space
I set the "ANT_OPTS" environment variable to "-Xmx256m" and I didn't get the
exception any more. At least I tried that once and it worked. Still, a better
solution and that would work all the time would be nice.
> CactifyWar task throws OutOfMemory Error with large WAR files
> -------------------------------------------------------------
>
> Key: CACTUS-59
> URL: http://issues.apache.org/jira/browse/CACTUS-59
> Project: Cactus
> Type: Bug
> Components: Ant Integration
> Versions: 1.5-beta1
> Environment: Operating System: Linux
> Platform: PC
> Reporter: brianj
>
> When using the CactifyWar task within Ant (v. 1.6), the build will fail with
> an
> OutOfMemory error. Stack trace follows:
> [cactifywar] Analyzing war:
> /usr/local/tdk-2.2/webapps/janus/WEB-INF/build/janus.war
>
> BUILD FAILED
> java.lang.OutOfMemoryError
> at org.apache.tools.ant.Project.executeTarget(Project.java:1246)
> at org.apache.tools.ant.Project.executeTargets(Project.java:1094)
> at org.apache.tools.ant.Main.runBuild(Main.java:668)
> at org.apache.tools.ant.Main.startAnt(Main.java:220)
> at org.apache.tools.ant.launch.Launcher.run(Launcher.java:213)
> at org.apache.tools.ant.launch.Launcher.main(Launcher.java:90)
> Caused by: java.lang.OutOfMemoryError
> --- Nested Exception ---
> java.lang.OutOfMemoryError
>
> Total time: 4 seconds
> ----- End stack trace
> - WAR file size: 44M
> Build fails when Cactified WAR file reaches 9M.
--
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
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]