cactus Ant - Out Of Memory
atish <[email protected]>
| Newsgroups | gmane.comp.jakarta.cactus.user |
|---|---|
| Message-ID | <[email protected]> |
Hi All,
While working on cactus Ant, Ant throws out of memory error (during
cactifywar).
Although, I had set "ANT_OPT" attribute to "-Xms512m -Xmx512m" in
{ANT_HOME}/bin/ant.bat. As well, you can see in below Ant script snipet, I
had set "maxmemory" attribute to "512M" in cactus tag.
I am working on windowXP with 2GB RAM. I am using cactus-ant1.7.1 and
cactus1.7.1. The war that i am trying to cactify is about 84 MB
Still, I am getting OUT OF MEMORY.
I am getting same problem on Ant 1.6.3 and Ant 1.6.5 both the version.
below is the snipet of cactus in build.xml
<target name="init-cactus" depends="pre-init" >
<path id="cactus.classpath">
<pathelement
location="${lib.src.dir}/cactus-ant-1.7dev20040523.jar"/>
<pathelement
location="${lib.src.dir}/cactus-1.7.1.jar" />
<pathelement
location="${lib.src.dir}/commons-httpclient-2.0.2.jar"/>
<pathelement
location="${lib.src.dir}/commons-logging-1.1.jar"/>
<pathelement
location="${lib.src.dir}/aspectjrt.jar"/>
<pathelement
location="${lib.src.dir}/junit-3.8.1.jar"/>
<pathelement location="${lib.src.dir}/httpunit-1.6.jar" />
</path>
</target>
<target name="cactify-war" depends="init-cactus" >
<taskdef resource="cactus.tasks"
classpathref="cactus.classpath" />
<cactifywar srcfile="${lib.output.dir}/myweb.war"
destfile="${lib.output.dir}/cactified.war">
<classes dir="${src.dir}"
includes="**/cactustest/*.class"/>
<lib file="${lib.src.dir}/httpunit-1.6.jar"/>
</cactifywar>
</target>
<target name="cactus-test" depends="cactify-war">
<taskdef resource="cactus.tasks"
classpathref="cactus.classpath" />
<cactus warfile="${lib.output.dir}/cactified.war"
maxmemory="512M">
<classpath>
<path refid="build.classpath"/>
<pathelement
location="${classes.output.dir}"/>
</classpath>
<containerset>
<generic startuptarget = "start-wls"
shutdowntarget = "stop-wls"/>
</containerset>
<formatter type="xml"/>
<batchtest>
<fileset dir="${classes.output.dir}">
</fileset>
</batchtest>
</cactus>
</target>
error on command prompt:
pre-init:
[property] Loading Environment env.
[available] Found: build.properties
[property] Loading X:\build.properties
[echo] weblogic91.present = true
init-cactus:
cactify-war:
[cactifywar] Analyzing war: X:\build_output.WebLogic\lib\myweb.war
BUILD FAILED
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(DefaultExecutor.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
--- Nested Exception ---
java.lang.OutOfMemoryError: Java heap space
Please, help me. Its very frustrating now. From last 2 days, I struct to the
same problem.
Hope so All the information sufficient to locate the problem.
If anybody has ever encountered the same problem and has any solution to the
problem, do let me know.
Thanks in advance
regards
--
View this message in context: http://www.nabble.com/cactus-Ant---Out-Of-Memory-tf3590284.html#a10033786
Sent from the Cactus - User mailing list archive at Nabble.com.