[Webtest] Out of memory help
Stefan Ruff
webtest@lists.canoo.com
Mon, 19 Jan 2004 19:12:20 +0100
Hi Tim
we had the problem on a Win2000 system.
To things to do:
First, start the VM in which the ANT is running with the –server option.
You can do this with ANT_OPTS=-server. Some older versions of ant have a
bug in the ant.bat file. I’m not sure if the 1.5.4 has this bug to. If
the script is buggy ant won’t start. The you have to edit the ant.bat.
There are two lines in which the v mist startet an the parameters are
passed. %ANT_OPTS% must be the first parameter to the vm.
(see also the mailing list: date 09.10.2003)
Second: We have defined the webtest task in a separate file and included
the &taskDefinition in each single test. We changed that. So now we only
define the webtest task in the master build file. Since then we never
again hade the out of memory exception.
I hope it helps you
Stefan
Tim Heath wrote:
> ant -version gives:
>
> Apache Ant version 1.5 compiled on July 9 2002
>
> I am getting out of memory errors when I reach 14 tests. I did move
> the definition of the ant task to the main build file which allowed me
> to run more tests than I previously did. I tried export
> ANT_OPTS=-server and it said that it was not a recognized command. Any
> ideas?
>
> Can I just make seperate build.xml files for each test then fork to
> call those seperate build.xml files and when they end the memory would
> clean up and do that for every test preventing memory leakage build up?
>
> Thanks,
>
> Tim Heath
>
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest
>
>