This is a migrated thread and some comments may be shown as answers.

Telerik Browser.NavigateTo method causes IE9 to leak memory.

3 Answers 63 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Adam
Top achievements
Rank 1
Adam asked on 20 Sep 2012, 08:00 PM

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.

3 Answers, 1 is accepted

Sort by
0
Accepted
Cody
Telerik team
answered on 25 Sep 2012, 06:58 PM
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
0
Adam
Top achievements
Rank 1
answered on 25 Sep 2012, 07:13 PM

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

Adam
0
Byron
Telerik team
answered on 14 Nov 2012, 07:49 PM
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
Tags
General Discussions
Asked by
Adam
Top achievements
Rank 1
Answers by
Cody
Telerik team
Adam
Top achievements
Rank 1
Byron
Telerik team
Share this question
or