SPONSORS:






User Tag List

Results 1 to 7 of 7
  1. #1
    Senior Member
    Join Date
    Jan 2003
    Location
    Portland, ME USA
    Posts
    603
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Running a testcase loop.. and it getts slower and slower

    Iam running a simple test case where it open a Vb form, does a save, and close action, an does this over and over. I set up a timer, and on every loop it takes 100% more time than the first loop?? I was just wondering if anyone else was having the same issue?

    I am running SilkTest6.0 on XP Pro with a gig of ram.

    ------------------
    N+ CNA

  2. #2
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running a testcase loop.. and it getts slower and slower

    What does the memory utilization look like during that run? Does it remain flat or does it continue to climb?


    John


    ------------------

  3. #3
    Senior Member
    Join Date
    Jan 2003
    Location
    Portland, ME USA
    Posts
    603
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running a testcase loop.. and it getts slower and slower

    It climbs, I am also running 1 gig of DDR ram

    ------------------
    N+ CNA

  4. #4
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running a testcase loop.. and it getts slower and slower

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by RCyr:
    It climbs, I am also running 1 gig of DDR ram
    <HR></BLOCKQUOTE>

    I figured that it would. Because memory-use continues to climb, that application likely has a memory leak.

    You can find it by inserting a Print(SYS_Get_MemoryInfo([your app],WORKING_SET)) within your loop to document the progression. Repeatedly opening and closing dialogs is often a good way to reproduce this problem.

    In the mean time, to restore performance and keep the tests running, a useful work around is to periodically Minimize and Restore that application - at every N count in your loop will usually do the trick. (There are many ways to determine the best value for "N".)

    The effect of releasing memory using Minimize/Restore is easy to see and you can try it right now.

    1. Bring up the Task manager and click on the Processes Tab. Find the entry for your Browser and note the value in it's "Mem Usage" column.

    2. Now right-click on the Browsers' title and click Minimize (or just click the "minus" button).

    3. Check the "Mem Usage" entry again. It'll be quite a bit smaller (the greatest reduction occurs the first time) and it will remain much smaller than the original value when it is restored.


    John


    ------------------


    [This message has been edited by John J. Miller (edited 01-30-2003).]

  5. #5
    Senior Member
    Join Date
    Dec 2000
    Location
    Phoenix, AZ
    Posts
    371
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running a testcase loop.. and it getts slower and slower

    This is very cool J Miller. However, can you give some explanation for why the memory is reduced when minimizing.

    Why is the memory not being freed up by the application if there is not a memory leak?



    ------------------

  6. #6
    Senior Member
    Join Date
    Dec 2000
    Location
    Phoenix, AZ
    Posts
    371
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running a testcase loop.. and it getts slower and slower

    Thanks John. Actually your first answer took care of the second question for me.

    ------------------

  7. #7
    Senior Member
    Join Date
    Feb 2000
    Posts
    1,497
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: Running a testcase loop.. and it getts slower and slower

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by kkoski:
    However, can you give some explanation for why the memory is reduced when minimizing.
    <HR></BLOCKQUOTE>
    Without using all of the actual buzz-words I've long since forgotten, the act of minimizing is equivalent to telling the operating system that you are done with that application for a while, that it can place it into the swap file and release its memory space for use by other applications. When restored, the application regains operational access as before but it restarts with a "clean slate".

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>
    Why is the memory not being freed up by the application if there is not a memory leak?
    <HR></BLOCKQUOTE>
    I'm not quite sure I understand this question.

    Applications usually ask for system memory in large chunks that they inturn divvy out internally as needed. You can see the resulting stair-step effect if you copy a lengthy series of memory-use numbers to a spreadsheet line graph.

    A dialog having a fixed set of contents should use a fixed amount of memory when opened and release that same amount when closed. During a looped activity memory use should reach a certain plateau, then remain flat thereafter. If it instead continues to climb resources are being requested but not released. This effect eventually forces the application to ask for yet another large chunk of system memory. Deteriorating performance is a common symptom.


    John


    ------------------

 

 

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

vBulletin Optimisation provided by vB Optimise v2.6.0 Beta 4 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
User Alert System provided by Advanced User Tagging v3.0.9 (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Questions / Answers Form provided by vBAnswers (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
vBNominatevBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Feedback Buttons provided by Advanced Post Thanks / Like (Pro) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
Username Changing provided by Username Change (Free) - vBulletin Mods & Addons Copyright © 2016 DragonByte Technologies Ltd.
BetaSoft Inc.
Digital Point modules: Sphinx-based search
All times are GMT -8. The time now is 05:39 PM.

Copyright BetaSoft Inc.