Java Mailing List Archive

http://www.ant-tasks.com/

Home » Ant Users List »

AW: Junit report giving out of memory error

Knuplesch, Jürgen

2008-02-12


Author LoginPost Reply
I had similar problems.

I suggest tghe following:
1. <junit> has a maxmemory attribute. I use 1024. I use forking.
2. Split the tests via include and exclude. I parted our tests into three parts.
3. Be sure that your memory option will not be overwritten by a later called Batchfile
4. Increase the memory another time.

--
Jürgen Knuplesch             www.icongmbh.de
icon Systemhaus GmbH           Tel. +49 711 806098-275
Sophienstraße 40            
D-70178 Stuttgart             Fax. +49 711 806098-299

Geschäftsführer: Uwe Seltmann
HRB Stuttgart 17655
USt-IdNr.: DE 811944121
-----Ursprüngliche Nachricht-----
Von: Mevitha [mailto:mevithamathew@(protected)]
Gesendet: Dienstag, 12. Februar 2008 04:51
An: user@(protected)
Betreff: Junit report giving out of memory error


Hi,

I am using WSAD 5.1 to run an ant script to run junit test cases.
Everything is fine except when the junit report starts, I am getting the below error.

unitTestReport:

[mkdir] Created dir: D:\TempTesting\TestReports

[junitreport] Using Xalan version: XSLT4J Java 2.6.5

BUILD FAILED: java.lang.StackOverflowError

Total time: 4 minutes 21 seconds

It is working fine on another machine. But not in mine.
I have tried giving ANT_OPTS=-Xmx500M

Please let me know how to resolve this.

Thanks in advance.

Mevitha


--
Sent from the Ant - Users mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@(protected)
For additional commands, e-mail: user-help@(protected)

©2008 ant-tasks.com - Jax Systems, LLC, U.S.A.