[Webtest] Any way to free memory?

Lisa Crispin webtest@lists.canoo.com
Mon, 25 Apr 2005 15:56:34 +0000


--NextPart_Webmail_9m3u9jl4l_11264_1114444594_0
Content-Type: text/plain
Content-Transfer-Encoding: 8bit

Hi Marc,
The build server is Linux.  LANG is set to en_US.UTF-8.  
thanks,
Lisa


-------------- Original message from Marc Guillemot <mguillemot@yahoo.fr>: -------------- 


> Hi Lisa, 
> 
> what is the OS of the build server? If Linux (or other unix), what is the value 
> of the LANG env variable? 
> 
> Marc. 
> 
> Lisa Crispin wrote: 
> > We found the reason for our mysterious problem. The results.xml file was 
> > getting huge, it was something like 120 meg, only on our build server 
> > (when running the same test on windows, results.xml is 1.3 
> > meg). Writing to the results.xml file was apparently what chewed up the 
> > memory. 
> > 
> > On only our build server, no where else, when a particular verifyPdfText 
> > was executed, a bunch of binary data got written into the result.xml 
> > file. The text we were verifying was a string I had copied in from the 
> > pdf file. It contained some double quotes which were funky double 
> > quotes. It has worked for months just fine, but we just installed a new 
> > version of Windward (which generates the pdf files) which uses different 
> > itext libraries. I can only think this is the reason. The solution was 
> > to take the part of the string with the quotes out of the file. 
> > 
> > We have seen other differences in behavior between the pdf files and 
> > VerifyPdfText based on platform. But only with this latest version of 
> > Windward. We can work around it, it is just mystifying. What would 
> > cause binary data to be written to a results.xml file - in the middle of 
> > a line, instead of this: 
> > 
> > 
> > 
> > We got this: 
> > : 
> > -------------- 
> > 
> > Have you tried using separate result files to make them smaller? 
> > ( resultfile= in ) 
> > I haven't read the mailing list for sometime. I am not up to date what 
> has been changing. 
> > 
> > Ji 
> > 
> ------------------------------------------------------------------------ 
> > *From:* webtest-admin@gate2.canoo.com 
> > [mailto:webtest-admin@gate2.canoo.com] *On Behalf Of *Lisa Crispin 
> > *Sent:* Thursday, April 21, 2005 5:44 PM 
> > *To:* webtest@gate2.canoo.com 
> > *Subject:* [Webtest] Any way to free memory? 
> > 
> > We seem to have hit a threshold on our build server (dual 
> > processor amd running Red Hat Fedora Core 3, 2 gig memory). 
> > When our test suite is running, the java process grows to 1.1 
> > gig, then the suite just seems to hang. It has problems writing 
> > results.xml, which has grown to 20meg at this point (when it 
> > hangs). We can run the same suite on other machines, it runs to 
> > completion, but also the process grows - up to 600 meg on a 
> > Windows machine. This would indicate that the damn thing just 
> > grows and grows and grows. 
> > 
> > Below is an excerpt from our build.xml. We have 43 scripts of 
> > various sizes. It would be nice if we could free memory in 
> > between each script. Is there a way to do this? We've already 
> > bumped up our ant process to 800 meg of memory, and done every 
> > suggestion we found in the mailing list archives that seemed 
> > relevant. 
> > 
> > Please help, we've hit a wall and we are dependent on these 
> > tests running every night. 
> > 
> > > > description="Runs c 
> > anoo tests in nightly build only (requires running application)."> 
> > 
> > 
> > > > antfile="${test.webtest.scripts.dir}/PlanEstTourTest.xml"/> 
> > > > antfile="${test.webtest.scripts.dir}/CSRUpdUserPsw.xml"/> 
> > 
> > Thank you! 
> > -- Lisa 
> > 
> 
> _______________________________________________ 
> WebTest mailing list 
> WebTest@lists.canoo.com 
> http://lists.canoo.com/mailman/listinfo/webtest 
--NextPart_Webmail_9m3u9jl4l_11264_1114444594_0
Content-Type: text/html
Content-Transfer-Encoding: 8bit

<html>
<!-- BEGIN WEBMAIL STATIONERY -->
<head></head>
<body>
<!-- WEBMAIL STATIONERY noneset -->
<DIV></DIV>
<DIV>Hi Marc,</DIV>
<DIV>The build server is Linux.&nbsp; LANG is set to en_US.UTF-8.&nbsp; </DIV>
<DIV>thanks,</DIV>
<DIV>Lisa</DIV><BR>
<BLOCKQUOTE style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #1010ff 2px solid">-------------- Original message from Marc Guillemot &lt;mguillemot@yahoo.fr&gt;: -------------- <BR><BR><BR>&gt; Hi Lisa, <BR>&gt; <BR>&gt; what is the OS of the build server? If Linux (or other unix), what is the value <BR>&gt; of the LANG env variable? <BR>&gt; <BR>&gt; Marc. <BR>&gt; <BR>&gt; Lisa Crispin wrote: <BR>&gt; &gt; We found the reason for our mysterious problem. The results.xml file was <BR>&gt; &gt; getting huge, it was something like 120 meg, only on our build server <BR>&gt; &gt; (when running the same test on windows, results.xml is 1.3 <BR>&gt; &gt; meg). Writing to the results.xml file was apparently what chewed up the <BR>&gt; &gt; memory. <BR>&gt; &gt; <BR>&gt; &gt; On only our build server, no where else, when a particular verifyPdfText <BR>&gt; &gt; was executed, a bunch of binary data got written into the result.xml <BR>&gt; &gt; file. The text we were verifying was a string I had copied in from the <BR>&gt; &gt; pdf file. It contained some double quotes which were funky double <BR>&gt; &gt; quotes. It has worked for months just fine, but we just installed a new <BR>&gt; &gt; version of Windward (which generates the pdf files) which uses different <BR>&gt; &gt; itext libraries. I can only think this is the reason. The solution was <BR>&gt; &gt; to take the part of the string with the quotes out of the file. <BR>&gt; &gt; <BR>&gt; &gt; We have seen other differences in behavior between the pdf files and <BR>&gt; &gt; VerifyPdfText based on platform. But only with this latest version of <BR>&gt; &gt; Windward. We can work around it, it is just mystifying. What would <BR>&gt; &gt; cause binary data to be written to a results.xml file - in the middle of <BR>&gt; &gt; a line, instead of this: <BR>&gt; &gt; <BR>&gt; &gt; <PARAMETER value="*The name and address of the &#13;&#10;<BR>> > Administrator can be found on ?Plan Highlights? attachment.*" name="*text*" /><BR>&gt; &gt; <BR>&gt; &gt; We got this: <BR>&gt; &gt; <PARAMETER value="*The name and address of the &#13;&#10;<BR>> > Administrator can be found on [a bunch of weird binary data, megabytes &#13;&#10;<BR>> > of it!]*&#13;&#10;<BR>> > ** &#13;&#10;<BR>> > *thanks,*&#13;&#10;<BR>> > *Lisa*&#13;&#10;<BR>> > &#13;&#10;<BR>> >     -------------- Original message from lisa.crispin@att.net (Lisa&#13;&#10;<BR>> >     Crispin): --------------&#13;&#10;<BR>> > &#13;&#10;<BR>> >     I will give that a try, thanks.&#13;&#10;<BR>> >     -- Lisa&#13;&#10;<BR>> > &#13;&#10;<BR>> >         -------------- Original message from " name="*text*" <Ji.Kim@cnet.com Kim? Ji>: <BR>&gt; &gt; -------------- <BR>&gt; &gt; <BR>&gt; &gt; Have you tried using separate result files to make them smaller? <BR>&gt; &gt; ( resultfile= in <CONFIG>) <BR>&gt; &gt; I haven't read the mailing list for sometime. I am not up to date what <BR>&gt; has been changing. <BR>&gt; &gt; <BR>&gt; &gt; Ji <BR>&gt; &gt; <BR>&gt; ------------------------------------------------------------------------ <BR>&gt; &gt; *From:* webtest-admin@gate2.canoo.com <BR>&gt; &gt; [mailto:webtest-admin@gate2.canoo.com] *On Behalf Of *Lisa Crispin <BR>&gt; &gt; *Sent:* Thursday, April 21, 2005 5:44 PM <BR>&gt; &gt; *To:* webtest@gate2.canoo.com <BR>&gt; &gt; *Subject:* [Webtest] Any way to free memory? <BR>&gt; &gt; <BR>&gt; &gt; We seem to have hit a threshold on our build server (dual <BR>&gt; &gt; processor amd running Red Hat Fedora Core 3, 2 gig memory). <BR>&gt; &gt; When our test suite is running, the java process grows to 1.1 <BR>&gt; &gt; gig, then the suite just seems to hang. It has problems writing <BR>&gt; &gt; results.xml, which has grown to 20meg at this point (when it <BR>&gt; &gt; hangs). We can run the same suite on other machines, it runs to <BR>&gt; &gt; completion, but also the process grows - up to 600 meg on a <BR>&gt; &gt; Windows machine. This would indicate that the damn thing just <BR>&gt; &gt; grows and grows and grows. <BR>&gt; &gt; <BR>&gt; &gt; Below is an excerpt from our build.xml. We have 43 scripts of <BR>&gt; &gt; various sizes. It would be nice if we could free memory in <BR>&gt; &gt; between each script. Is there a way to do this? We've already <BR>&gt; &gt; bumped up our ant process to 800 meg of memory, and done every <BR>&gt; &gt; suggestion we found in the mailing list archives that seemed <BR>&gt; &gt; relevant. <BR>&gt; &gt; <BR>&gt; &gt; Please help, we've hit a wall and we are dependent on these <BR>&gt; &gt; tests running every night. <BR>&gt; &gt; <BR>&gt; &gt; <TARGET name="run-nightly-canoo" <BR depends="canoo-taskdef">&gt; &gt; description="Runs c <BR>&gt; &gt; anoo tests in nightly build only (requires running application)."&gt; <BR>&gt; &gt; <DELETE dir=${resultsPath} /><BR>&gt; &gt; <MKDIR dir=${resultsPath} /><BR>&gt; &gt; <ANT <BR>&gt; &gt; antfile="${test.webtest.scripts.dir}/PlanEstTourTest.xml"/&gt; <BR>&gt; &gt; <ANT <BR>&gt; &gt; antfile="${test.webtest.scripts.dir}/CSRUpdUserPsw.xml"/&gt; <BR>&gt; &gt; <BR>&gt; &gt; Thank you! <BR>&gt; &gt; -- Lisa <BR>&gt; &gt; <BR>&gt; <BR>&gt; _______________________________________________ <BR>&gt; WebTest mailing list <BR>&gt; WebTest@lists.canoo.com <BR>&gt; http://lists.canoo.com/mailman/listinfo/webtest </BLOCKQUOTE>
<!-- END WEBMAIL STATIONERY -->

</body>
</html>

--NextPart_Webmail_9m3u9jl4l_11264_1114444594_0--