SPONSORS:






User Tag List

Results 1 to 9 of 9
  1. #1
    Senior Member
    Join Date
    Apr 2001
    Location
    Montreal, Quebec, Canada
    Posts
    324
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    SilkTest and memory tracking programs


    Hi Everyone,

    Has anyone used Silktest with a memory tracking program? If so, do you have hints or tips as to what tools are the best and what would be the best approach to use them.

    Thanks in advance
    Clemens

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

  2. #2
    Senior Member
    Join Date
    Jun 2000
    Location
    Chicago, IL USA
    Posts
    383
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest and memory tracking programs

    I have had success using SilkTest to automatically track the contents of the lowly Windows NT Task Manager during my tests.

    The Task Manager can actually be setup to display quite a bit of general info about the AUT. The "Handles" and "Threads" columns have proven especially useful. More than once, I have found windows that could be opened and closed, resulting in an increment of the thread count each time. These were memory leaks caused by bad object deconstructors.

    ------------------
    Rob Kapteyn
    Rob Kapteyn, CSTE
    RobKapteyn@gmail.com

  3. #3
    Member
    Join Date
    Mar 2000
    Posts
    75
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest and memory tracking programs

    I think it comes with NT Resource Kit (or NT Server), but the performace monitor is something that can track on a variety of statistice and you can graph the results over a period of time... you can run the monitor on remote machines as well...

    It all depends on what stats you are looking to track... there are some 4Test functions floating around that do general Win32 memory tasks.. (avail mem, free mem..)

    Peter

  4. #4
    Senior Member
    Join Date
    Apr 2001
    Location
    Montreal, Quebec, Canada
    Posts
    324
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest and memory tracking programs


    I am looking more into the posibility of having Silktest working together with some tools that are specialized in memory leaking, such as heapagent and the like.



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

  5. #5
    Member
    Join Date
    May 2000
    Location
    NY
    Posts
    52
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest and memory tracking programs

    I have been quite successful in using SilkPerformer in conjunction with the Memory Profiling tool "Optimize It" to track down various leaks. The thing about using silkperformer is if you have a slow memory leak, using SilkPerformer will aggrevate the problem sufficiently so that you don't really need a memory profiling tool to see that the memory (in my case Java Heap) is gradually diminished.

    Optimize It (for java apps) is actually icing on the cake, since it will allow you to see the particular objects and stack trace that are causing the leak.

    I suppose you can use silktest the same way, in particular, guess which action from the UI may be causing a leak, take a measurement of the memory before the load is applied, exercise the suspect functionality thoroughly (say overnight) and take a measurement of the memory at the end of the test. If there is substantially less memory available, there is probably a memory leak, and it will have been caused by the code in the functionality you have exercised.



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

  6. #6
    Senior Member
    Join Date
    Apr 2000
    Posts
    401
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest and memory tracking programs

    If you mean not integrated with Silk but along side silk as you said then you can use either Rationals Purify or Compuware's memory tools. Also the win32 api function GlobalMemoryStatus can be used that fills a structure (like a record) with various memory information. You can run this in Silk and take snapshots of memory at certain intervals and use this info to determine whether you have a memory leak or not.
    This function is available in the Kernel32 library

    ------------------
    The Test Force is strong in this one

  7. #7
    Super Member
    Join Date
    Jul 2001
    Location
    Earth
    Posts
    1,882
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest and memory tracking programs

    You can use SilkTest in conjuction with PerformanceExplorer (which ships with SilkPerformer). While a SilkTest script is running you can monitor the AUT's memory stats (handle count, private bytes, ect.) and at the end of a test you can have data and graphs showing what happened to the AUT while a test was running.

    It is a great way to check for memory leaks and graphically show them when you log the defect.

    ------------------
    James Soderborg
    http://www.ameliortech.com
    jamesso@ameliortech.com

  8. #8
    Senior Member
    Join Date
    Jul 1999
    Location
    Bellingham, WA USA
    Posts
    1,323
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest and memory tracking programs

    Well, you could do something along these lines...

    <code>
    private Boolean bReportMemoryLeaks
    private int nMemoryBaseline
    private Boolean _MemoryReportDefault = False
    SetMemoryBaseline ()
    _Print2("Setting memory baseline.")
    nMemoryBaseline = SYS_GetFreeMemory()
    _Print3("Memory baseline for this test: {nMemoryBaseline}.")
    CheckMemoryLoss ()

    Sleep (1)

    String sLeakMsg

    int nCurrentMemory = SYS_GetFreeMemory()

    if (nCurrentMemory < nMemoryBaseline)

    Boolean bTemp

    if ! IsSet (bReportMemoryLeaks)
    _LogWarning ("Memory leak reporting not explicitly disabled.")
    bTemp = _MemoryReportDefault
    else
    bTemp = bReportMemoryLeaks

    sLeakMsg = "Possible memory leak -- { nMemoryBaseline - nCurrentMemory } bytes "
    if (bTemp)
    _LogError ("FAILURE! {sLeakMsg}")
    else
    _Print3("No memory leak to report.")
    ReportMemoryLeaks (Boolean bReport)
    bReportMemoryLeaks = bReport
    _Print3("Setting memory leak reporting to {bReportMemoryLeaks}.")
    </code>

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


    [This message has been edited by DJGray (edited 09-25-2001).]

  9. #9
    Member
    Join Date
    Jun 2000
    Location
    Derby, UK
    Posts
    37
    Post Thanks / Like
    Mentioned
    0 Post(s)
    Tagged
    0 Thread(s)

    Re: SilkTest and memory tracking programs

    Thats pretty cool but its only valid on Windows not NT or 2000. Shame.
    My problems is that my apps a web app so i want the information from the process inetinfo.
    Is there any way of using silktest to get the memory used by a process? (via any Nt command even).
    Or is just about time i got into using a performance tracking tool?

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

 

 

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 12:26 PM.

Copyright BetaSoft Inc.