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

memory leaks in radscriptmanager?

6 Answers 96 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Craig Wallace
Top achievements
Rank 1
Craig Wallace asked on 26 Nov 2010, 07:17 PM
Hi,

I am trying to troubleshoot some suspected memory leaks in an asp.net page that uses a lot of telerik rad ajax controls.  In doing this, I am using the Drip IE leak detector available at http://outofhanwell.com/ieleak/index.php?title=Main_Page

I was getting too many leaks to make sense of so tried something simple.  Firstly I created a page with just a standard asp listbox:

<asp:DropDownList ID="DropDownList1" runat="server">
   <asp:ListItem Value="1" Text="2"></asp:ListItem>
   <asp:ListItem Value="3" Text="4"></asp:ListItem>
</asp:DropDownList>

I then set this page to auto-refresh in Drip.  The memory usage stayed constant.

I then added a RadScriptManager:

<telerik:RadScriptManager ID="RadScriptManager1" runat="server" AjaxFrameworkMode="Enabled">
</telerik:RadScriptManager>
<asp:DropDownList ID="DropDownList1" runat="server">
  <asp:ListItem Value="1" Text="2"></asp:ListItem>
  <asp:ListItem Value="3" Text="4"></asp:ListItem>
</asp:DropDownList>

I set this running in Drip, and the memory usage increased by 500Kb per refresh!

So, is there some kind of huge memory leak in RadScriptManager?  I am using 2010.3.1109.40

Thanks,

Craig

6 Answers, 1 is accepted

Sort by
0
Craig Wallace
Top achievements
Rank 1
answered on 26 Nov 2010, 08:57 PM
Well, I changed to using sIEve instead of Drip as it was a lot easier to use, and also seems to give more consistent results.

Using sIEve, I appear to have tracked down the issue to a RadWindowManager.  If this RadWindowManager has the Width property set, then I get 4 leaks per page load.  If I remove the Width attribute, I no longer get any leaks.

I have another RadWindowManager in the same page that does have a Width set, and it doesn't cause trouble.  The one that does cause trouble is opened by setting the VisibleOnPageLoad property to true on a button click.  The one that is fine is opened with client-side javascript on an ajax call.

Craig
0
Georgi Tunev
Telerik team
answered on 29 Nov 2010, 01:14 PM
Hi Craig,

Could you please provide more details about:
  1. The sample page that you test (post its code if possible please).
  2. The test's steps.
I would also recommend to check this forum thread where a similar problem is discussed.

Sincerely yours,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
0
Craig Wallace
Top achievements
Rank 1
answered on 29 Nov 2010, 01:24 PM
Hi Georgi,

I have already set DestroyOnClose="true"; the problem happens without ever actually opening the RadWindow.

I have since discovered I have further leaks when using RadTabStrip.  This generates so many leaks that it crashes sIEve!  (1321 when I change tab).  I am using loadcontrol on tab click to load a user control, could that be a problem?

My collegue has a ticket submitted which has an older copy of the project.  If you look at ticket 351977 and try running the project in sIEve, I would be very grateful for any feedback.

Craig
0
Craig Wallace
Top achievements
Rank 1
answered on 30 Nov 2010, 12:49 AM
Still investigating.  I think it has to do with RadAjaxManagerProxy and asp:panel controls being shown and hidden.
0
Craig Wallace
Top achievements
Rank 1
answered on 30 Nov 2010, 10:17 AM
Hi Georgi,
Did you find the ticket details?

Craig
0
Georgi Tunev
Telerik team
answered on 01 Dec 2010, 02:39 PM
Hello Craig,

I checked the project, but it is huge and I was not sure which is the page that you were testing. That is why, I used the instructions provided by your colleague for the problem that he reported. Indeed, there were some leaks left after the page was disposed, but they were not related to our controls. I replied the ticket that your colleague sent us, but I prefer not to post the reply here as I suppose that the information shown in the movie that I did, might be considered private. Please check his ticket for the details.

If the testing steps that you did on your side are the same as the one shown in the movie, but you get leaks in any of our controls, please open a support ticket and send us the details. Sending us a support ticket will guarantee you a timely reply in the time frame set by your license. The forums are a community resource and although we monitor them closely, we cannot guarantee a fast reply here.


All the best,
Georgi Tunev
the Telerik team
Browse the vast support resources we have to jumpstart your development with RadControls for ASP.NET AJAX. See how to integrate our AJAX controls seamlessly in SharePoint 2007/2010 visiting our common SharePoint portal.
Tags
Ajax
Asked by
Craig Wallace
Top achievements
Rank 1
Answers by
Craig Wallace
Top achievements
Rank 1
Georgi Tunev
Telerik team
Share this question
or