1 message in com.canoo.lists.webtest[Webtest] Re: Re: Out of Memory...
FromSent OnAttachments
Ritesh Trivedi26 Jul 2005 09:18 
Subject:[Webtest] Re: Re: Out of Memory...
From:Ritesh Trivedi (rite@gmail.com)
Date:07/26/2005 09:18:23 AM
List:com.canoo.lists.webtest

Hi,

I have the same issue of OOM, but my scenario is a bit different in the sense that I am calling the same ant target multiple times in a loop and it is eating up memory every time its called in a loop.

After spending a few days trying to find a cause and solution, I came to the conclusion that there are memory leaks in Canoo, but they are not as bad, but larger memory leak seems to be in ant. It seems AntClassLoader is created everytime you call an Ant target and lingers around with all the classes, jars etc loaded in that classloader so every call to the target will create new classloader everytime!!

To get around the issue, I am planning to call ant target in a NEW VM by forking a new VM from existing one. You can probably try the same.

HTH.

Ritesh

On 7/26/05, webt@lists.canoo.com <webt@lists.canoo.com> wrote:

Send WebTest mailing list submissions to webt@lists.canoo.com

To subscribe or unsubscribe via the World Wide Web, visit http://lists.canoo.com/mailman/listinfo/webtest or, via email, send a message with subject or body 'help' to webt@lists.canoo.com

You can reach the person managing the list at webt@lists.canoo.com

When replying, please edit your Subject line so it is more specific than "Re: Contents of WebTest digest..."

Today's Topics:

1. Re: Classes Not Found Problem (Marc Guillemot) 2. Re: Out of Memory... (Marc Guillemot)

Message: 1 Return-Path: <mgui@yahoo.fr> Delivered-To: webt@gate2.canoo.com Message-ID: <42E5@yahoo.fr> Date: Tue, 26 Jul 2005 10:14:19 +0200 From: Marc Guillemot <mgui@yahoo.fr> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 MIME-Version: 1.0 To: webt@lists.canoo.com Subject: Re: [Webtest] Classes Not Found Problem References: <FDEC@canoo.com>
<42E5@net-frame.com> In-Reply-To: <42E5@net-frame.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: webt@lists.canoo.com Precedence: bulk Reply-To: webt@lists.canoo.com List-Help: <mailto:webt@lists.canoo.com?subject=help> List-Post: <mailto:webt@lists.canoo.com> List-Subscribe: <http://lists.canoo.com/mailman/listinfo/webtest>, <mailto:webt@lists.canoo.com?subject=subscribe> List-Id: Canoo WebTest Interest List <webtest.lists.canoo.com> List-Unsubscribe: <http://lists.canoo.com/mailman/listinfo/webtest>, <mailto:webt@lists.canoo.com?subject=unsubscribe> List-Archive: <http://lists.canoo.com/pipermail/webtest/>

Sorry but I don't know any webtest 1.5.1 or 1.5.4. What do you mean with these
version numbers?

Marc.

Terry Steichen wrote:

Hi,

I've been using Webtest 1.5.1 for some time and it works fine for me. I then tried to use Webtest 1.5.4 and got the following error:

BUILD FAILED file:C:/NF_Proj/admin/web_test_win.xml:27: taskdef class com.canoo.webtest.extension.applet.AppletRunner cannot be found at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:236) at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:208) at
org.apache.tools.ant.helper.ProjectHelperImpl$TaskHandler.finished(ProjectHelperImpl.java:821)

at
org.apache.tools.ant.helper.ProjectHelperImpl$AbstractHandler.endElement(ProjectHelperImpl.java:300)

at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.tools.ant.helper.ProjectHelperImpl.parse(ProjectHelperImpl.java:155)

at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:117) at org.apache.tools.ant.Main.runBuild(Main.java:597) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235) Caused by: java.lang.ClassNotFoundException: com.canoo.webtest.extension.applet.AppletRunner at
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1076)

at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1037) at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:926) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:230) ... 16 more --- Nested Exception --- java.lang.ClassNotFoundException: com.canoo.webtest.extension.applet.AppletRunner at
org.apache.tools.ant.AntClassLoader.findClassInComponents(AntClassLoader.java:1076)

at org.apache.tools.ant.AntClassLoader.findClass(AntClassLoader.java:1037) at org.apache.tools.ant.AntClassLoader.loadClass(AntClassLoader.java:926) at java.lang.ClassLoader.loadClass(ClassLoader.java:235) at org.apache.tools.ant.taskdefs.Definer.addDefinition(Definer.java:230) at org.apache.tools.ant.taskdefs.Definer.execute(Definer.java:208) at
org.apache.tools.ant.helper.ProjectHelperImpl$TaskHandler.finished(ProjectHelperImpl.java:821)

at
org.apache.tools.ant.helper.ProjectHelperImpl$AbstractHandler.endElement(ProjectHelperImpl.java:300)

at org.apache.xerces.parsers.AbstractSAXParser.endElement(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanEndElement(Unknown Source) at
org.apache.xerces.impl.XMLDocumentFragmentScannerImpl$FragmentContentDispatcher.dispatch(Unknown Source) at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.DTDConfiguration.parse(Unknown Source) at org.apache.xerces.parsers.XMLParser.parse(Unknown Source) at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source) at org.apache.tools.ant.helper.ProjectHelperImpl.parse(ProjectHelperImpl.java:155)

at org.apache.tools.ant.ProjectHelper.configureProject(ProjectHelper.java:117) at org.apache.tools.ant.Main.runBuild(Main.java:597) at org.apache.tools.ant.Main.start(Main.java:196) at org.apache.tools.ant.Main.main(Main.java:235)

The little test buildfile I'm using is this:

<project name="testbed" basedir="." default="maintarget">

<!-- <property name="webtest.home" value="/opt/java/webtest"/> --> <property name="webtest.home" value="/nf_proj/3rd_party/webtest154"/>

<target name="maintarget">

<testSpec name="getting main page" > <config host="www.washingtonpost.com" port="80" basepath="/" haltonfailure="true" protocol="http" > </config> <steps> <invoke stepid="get political news page" url="wp-dyn/politics/" /> </steps> </testSpec> </target>

<taskdef file="${webtest.home}/webtestTaskdefs.properties"> <classpath> <fileset dir="${webtest.home}"> <include name="lib/*.jar"/> <include name="lib/base/*.jar"/> <include name="lib/optional/*.jar"/> </fileset> <pathelement path="${webtest.home}/lib"/> </classpath> </taskdef> </project>

Appreciate any ideas on why webtest/ant isn't finding the right classes.

Regards,

Terry

_______________________________________________ WebTest mailing list WebT@lists.canoo.com http://lists.canoo.com/mailman/listinfo/webtest

Message: 2 Return-Path: <mgui@yahoo.fr> Delivered-To: webt@gate2.canoo.com Message-ID: <42E5@yahoo.fr> Date: Tue, 26 Jul 2005 10:18:12 +0200 From: Marc Guillemot <mgui@yahoo.fr> User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.7.3) Gecko/20040913 MIME-Version: 1.0 To: webt@lists.canoo.com Subject: Re: [Webtest] Out of Memory... References:
<8F93@MOU1WNEXMB08.vcorp.ad.vrsn.com> In-Reply-To:
<8F93@MOU1WNEXMB08.vcorp.ad.vrsn.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: webt@lists.canoo.com Precedence: bulk Reply-To: webt@lists.canoo.com List-Help: <mailto:webt@lists.canoo.com?subject=help> List-Post: <mailto:webt@lists.canoo.com> List-Subscribe: <http://lists.canoo.com/mailman/listinfo/webtest>, <mailto:webt@lists.canoo.com?subject=subscribe> List-Id: Canoo WebTest Interest List <webtest.lists.canoo.com> List-Unsubscribe: <http://lists.canoo.com/mailman/listinfo/webtest>, <mailto:webt@lists.canoo.com?subject=unsubscribe> List-Archive: <http://lists.canoo.com/pipermail/webtest/>

does it make any change if you use depends instead of antcall?

Marc.

Phalak, Kashmira Vijay wrote:

Hi All,

I have around 45 testcases. I'm using ant version 1.6.5 and I'm getting a java OutOfMemoryError. I've read the previous archives but not been able to isolate the cause of my problem. I have set the ANT_OPTS and JAVA_OPTS accordingly to increase the heap size. I am also not using the showhtmlparseroutput option or generating a result xml report. I have defined taskdef more thab once only in 2 places. I have all the targets in one main buildfile. Only thing is that I have reused the targets using <antcall>. There are a lot of antcalls in this main build file. Could this be causing the out of memory problem. Am I missing something else which is causing this problem?

Thanks, Kashmira.