Telerik Browser.NavigateTo method causes IE9 to leak memory.

4 posts, 1 answers
  1. Adam
    Adam avatar
    2 posts
    Member since:
    Sep 2012

    Posted 20 Sep 2012 Link to this post

    Using the Brower.NavigateTo() method causes a memory leak in IE9.

    We have a test which tries to access each of the urls in our web application looking for broken links.  We found that this test was consuming all the memory on the machine until it died.

    Here is some code that reproduces the problem:

                var webAiiSettings = new Settings();
                webAiiSettings.ClientReadyTimeout = 120000;
                webAiiSettings.AnnotateExecution = true;
                webAiiSettings.Web.RecycleBrowser = true;
                webAiiSettings.Web.DefaultBrowser = BrowserType.InternetExplorer;
                var WebAiiManager = new Manager(webAiiSettings);
                WebAiiManager.Start();
                WebAiiManager.LaunchNewBrowser(ProcessWindowStyle.Maximized);
                var WebAiiBrowser = WebAiiManager.Browsers[0];
                for (int i = 0; i < 100; i++)
                {
                    WebAiiBrowser.NavigateTo("http://www.telerik.com");
                }
                WebAiiBrowser.Close();
       
    Watch the memory of the IE9 browser climb each time it navigates to the website.  This does not happen in IE8.  Likewise, if I go to IE9 and keep manually hitting the website, the memory doesn't leak.

    Thank you 

    PS.  This is running on a Windows 2008 R2 machine.  I don't know if the problem exists on other platforms.

  2. Answer
    Cody
    Admin
    Cody avatar
    3360 posts

    Posted 25 Sep 2012 Link to this post

    Hi Adam,

    I have confirmed this is a bug in Test Studio and filed a new bug report on this behavior here. The only work around I can propose right now is to periodically close and re-launch IE (or use IE8 as you have discovered).

    Greetings,
    Cody
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
  3. Adam
    Adam avatar
    2 posts
    Member since:
    Sep 2012

    Posted 25 Sep 2012 Link to this post


    Thank you Cody.  We look forward to getting the fix.

    Adam
  4. Byron
    Admin
    Byron avatar
    184 posts

    Posted 14 Nov 2012 Link to this post

    Hi Adam,

    An update: while our 2012.2.1022 internal build improved this behavior, some memory leaking persists. We recommend this latest internal build as an intermediate measure.

    Greetings,
    Byron
    the Telerik team
    Quickly become an expert in Test Studio, check out our new training sessions!
    Test Studio Trainings
Back to Top