[Webtest] Memory Leak?
Lisa Crispin
webtest@lists.canoo.com
Fri, 15 Jul 2005 23:19:41 +0000
There is a fair amount about this on the mailing list archives.
Have you set your ANT_OPTS=-Xmx512m?
Also, if your result file gets big you will get memory problems that way (something about it parsing the result file each time). So you can split your results up into multiple files.
Unfortunately I have no idea on your detailed questions, I'm not a programmer.
-- Lisa
-------------- Original message ----------------------
From: Ritesh Trivedi <ritesh.trivedi@gmail.com>
> Hi,
>
> I am experiencing a memory leak in canoo, when calling canno based ant
> targets multiple times in loop. My JVM runs out of memory.
>
> It took me a lot of time to find the issue(s). Potential candidates
> for the memory leak are
>
> 1. why is Step keeping reference to ant Project? Step is extending
> Task and each Task is configured to have reference to Project by Ant
> framework.
>
> 2. Also looks like there is a lot of places where steps are stored in
> arraylist. I do not see all the references are getting cleaned up.
> This may leave all the references to steps and objects in the steps in
> heap
>
> 3.
Lots of convoluted references to objects - pointing to each other -
> its very difficult to profile and code and find out where the memory
> leak is.
>
> I havent made a lot of progress due to memory leaks, Can someone who
> is better versed with the code and leak issues throw some light?
>
> I will really appreciate faster response.
>
> Thanks
> Ritesh
> _______________________________________________
> WebTest mailing list
> WebTest@lists.canoo.com
> http://lists.canoo.com/mailman/listinfo/webtest