10 messages in com.canoo.lists.webtest[Webtest] Re: Out of memory when runn...
FromSent OnAttachments
Tim Miller18 Apr 2007 10:38 
Lisa Crispin18 Apr 2007 10:52 
Marc Guillemot19 Apr 2007 08:27 
Tim Miller19 Apr 2007 14:59 
Marc Guillemot20 Apr 2007 01:07 
Tim Miller20 Apr 2007 10:39 
Marc Guillemot23 Apr 2007 00:57 
Tim Miller23 Apr 2007 08:28 
Rob Manthey23 Apr 2007 19:23 
Michael Habbert24 Apr 2007 01:12 
Subject:[Webtest] Re: Out of memory when running WebTest
From:Marc Guillemot (mgui@yahoo.fr)
Date:04/23/2007 12:57:52 AM
List:com.canoo.lists.webtest

The difference doesn't necessary mean that the js support is guilty as your test don't run as long as they should.

Btw. can you try with the latest build, maybe is the problem already fixed. Improvements have been made in memory usage after release 2.1 but I don't remember if before or after the build that you use.

Marc.

Tim Miller wrote:

I added the <enableJavaScript enable="false"/> to each webtest and ran the tests. System memory remained at about 1.3 GB and tests completed without running out of memory. Of course all tests failed as JavaScript is required to have some of the forms appear on the page. With JavaScript enabled system would be using about 2.9 GB of memory. First failed step returns:

com.canoo.webtest.engine.StepFailedException: No suitable form found having field named "field", Step: SetSelectField at D:\home\qauser01\toolsv40\PortalTests\tests\common\steps\setAlertFilter. xml:6: with (taskName="setSelectField")

I noticed that each returned page contains a JavaScript definition for the menu items on the page which is fairly large. Our system uses a third-party JavaScript package for menu handling.

Tim

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com] On Behalf Of Marc Guillemot Sent: Friday, April 20, 2007 1:08 AM To: webt@lists.canoo.com Subject: Re: [Webtest] Out of memory when running WebTest

Hi Tim,

the WebTestResults.xml doesn't help.

Is it possible to run your tests with js disabled? This would allow to see if the problem is related to that.

Marc.

Tim Miller wrote:

No PDF or Excel files are processed, there is some JS in the pages. About 214 result pages are returned. I switched to a larger machine with 8 GB and was able to run 8 of the tests successfully, though the last test took some time to complete. I then enabled the remaining 4 tests and got an out of memory. I have some sqlunit calls which return a very small amount of data, 1 or 2 rows. I have not done any profiling as yet. I can provide you with the WebTestResults.xml which is about 779 KB if that is any help.

Regards, Tim

-----Original Message----- From: webt@lists.canoo.com [mailto:webt@lists.canoo.com] On Behalf Of Marc Guillemot Sent: Thursday, April 19, 2007 8:28 AM To: webt@lists.canoo.com Subject: Re: [Webtest] Out of memory when running WebTest

Quite strange. I'm used to run test sequence more than 100 times bigger than yours without problem.

Have you tried to profile WebTest to see where is the lost memory?

Is

JS

involved? PDF files? Excel files? Many windows?

Marc.

Tim Miller wrote:

I have a project which contains 12 WebTests, each WebTest contains approximately 50-60 steps. I can only run 4 of the WebTests at a time. Anything more and I get an out of memory. Each WebTest seems to use about .1 GB of memory when it runs, the memory usage never goes down once each WebTest completes. Eventually, it just locks up the machine then returns out of memory. I have 2 GB of memory on the machine.

WebTest is run from an Ant script which runs java on org.apache.tools.ant.launch.Launcher, fork=true, maxmemory=1024m.

WebTest: build 1453

Ant: 1.6.5 (also tried 1.7.0)

I am including the WebTest taskdef only once as was suggested in eariler discussions. I am using the xml results output. Any ideas?

Tim

(This email message is for the sole use of the intended

recipient(s)

and