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

RadGrid memory leak problems

11 Answers 314 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
ROBERT HUNTER
Top achievements
Rank 1
ROBERT HUNTER asked on 23 Sep 2009, 10:39 AM
Hi

We are using the 2008 Q3 controls (2008.3.1314.35). We are having some problems with our application as it has become clear that the radgrid is leaking memory.

not sure how important this is but I will write a bit about how we are using the controls. The application we have has a default page with a master page around it. It is a very ajaxy app with doing everything on one page. The main page has a RadTabStrip with three tabs and ofcourse uses RadMultiPage. We use the RadGrid inside the modal popup, in some instances this modal popup has a RadTabStrip inside it with the multipage and RadGrids on each page.

The problems we are getting is whenever a user opens one of the modal popups with a grid in it, adds a new record to the grid (or updates one) and closes the window there is a memory leak left behind for the grids TBody (used sIEve to find leaks. There is either the data in the Grid as the innerHtml or the empty cell if no data in the grid if you check it beofre the memory leak afterwards theres not much to go on). After much experimenting we have managed to find the source of the problem is the AllowRowSelect client settings thats causing it, if we change this to false there are no more memory leaks. Can you suggest how we can stop this from happening or provide any information that may help us clean this up?

Thanks
Robert

11 Answers, 1 is accepted

Sort by
0
ROBERT HUNTER
Top achievements
Rank 1
answered on 25 Sep 2009, 03:31 PM
Bump. Any chance of a hand with this issue guys, one of our devlopers put a simple example of the issue together but unfortunately there is nowhere to attach it on the message post? any suggestions? Why cant I attach something? Is it because my subscription ran out about month ago?
Thanks
R


0
Veli
Telerik team
answered on 28 Sep 2009, 08:46 AM
Hello ROBERT,

According to the sIEve project page:

'sIEve' is a project to get rid of memory leaks due to some limitations of the garbage collector in Internet Explorer

As observed above, IE does introduce memory leaks with AJAX applications and extensive Javascript usage. I believe this issue is not limited only to RadGrid or any of the Telerik RadControls.

As for uploading attachments, any kind of uploads in the forum are prohibited.

Greetings,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Veli
Telerik team
answered on 28 Sep 2009, 10:04 AM
Hi ROBERT,

Additionally, you may want to upgrade to the latest RadControls for ASP.NET 2009.Q2, as many such memory leaks in IE and other browsers have been found and fixed since the version you are using. Currently, our tests with sIEve and RadGrid do not show any memory leaks.

Greetings,
Veli
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ruben Hakopian
Top achievements
Rank 1
answered on 06 Jan 2010, 11:29 PM
Hi Robert,

I had the same memory leak issue with the AllowRowSelect set to True.
Did you have any chanse to find a workaround for this issue?

Thanks,
Ruben.
0
Tsvetoslav
Telerik team
answered on 07 Jan 2010, 03:58 PM
Hello Ruben,

The memory leak problem with the grid's client selection has recently been fixed. Please, upgrade to the latest version of the controls

Kind regards,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
ROBERT HUNTER
Top achievements
Rank 1
answered on 21 Jan 2010, 10:22 AM
Hi Ruben

In casse you are still having trouble with that the thing we were doing wrong was not using RadAjaxManager to handle the ajax postbacks, I think we also had unnecessary use of UpdatePanale s in places. This stopped sIEve complaning that there was any memory leaks. One of my colleagues fixed it, I coulr try provide more details if it helps.

Telerik suppoprt team,

Your controls have helped us get our application up and running with good functionality and appearance that our users really like. However the controls are starting to hold us back with performance issues. Unfortunately the only browser our organisation will allow us to use is ie 6, and after fixing the memory leaks mentioned above we are still getting issues, can you please help.

The problem we have is though sIEve shows our application to have no memory leaks, however I have been using IEJSLeaksDetector.exe, and am finding leaks in our application, they code they are highlighting is in the Telerik.Web.UI.WebResource.axd, please see attached image for screenshot.

To create the memory leaks in the attached screen shot I simply logged into our application, opened a RadWindow with some telerik controls grid, date picker, combo box, and text fields. If you look at the length of the scroll bar for the leaks you will se its quite small.

Thanks in advance for your advice

Regards
Robert


0
Tsvetoslav
Telerik team
answered on 21 Jan 2010, 05:20 PM
Hi ROBERT,

Please, open up a formal support ticker and send a small test project reproducing the memory leak.

Thanks.

All the best,
Tsvetoslav
the Telerik team

Instantly find answers to your questions on the new Telerik Support Portal.
Watch a video on how to optimize your support resource searches and check out more tips on the blogs.
0
Ruben Hakopian
Top achievements
Rank 1
answered on 21 Jan 2010, 07:43 PM
Hi Robert,

I'm still interested in this issue. Could you please collaborate more on how did you colleague fixed that thing? How did he make the RadAjaxManager to hande postbacks?

Thank you,
Ruben.
0
ROBERT HUNTER
Top achievements
Rank 1
answered on 01 Feb 2010, 02:11 PM
Hi Tsvetoslav
Thanks for your assistance, we will do as you suggest when we get a chance.

Ruben
The RadAjaxManager works as
<telerik:RadAjaxManager ID="ramSearch" runat="server">  
        <AjaxSettings> 
            <telerik:AjaxSetting AjaxControlID="btnSearch">  
                <UpdatedControls> 
                    <telerik:AjaxUpdatedControl ControlID="btnSearch" LoadingPanelID="rapLoading" /> 
                    <telerik:AjaxUpdatedControl ControlID="gvLocalResults" /> 
                    <telerik:AjaxUpdatedControl ControlID="pnlFlashMessages" /> 
                </UpdatedControls> 
            </telerik:AjaxSetting> 
            ...
        </AjaxSettings> 
</telerik:RadAjaxManager> 
 Above the btnSearch is the button that is clicked that causes the controls listed to refresh, you may have a few of those on each page.

Using this the memory leaks shown in sIEve dissapeared, however you may still get the problems I mention above

Robert
0
rubenhak
Top achievements
Rank 1
answered on 01 Feb 2010, 06:16 PM

Hi Robert,

Actually this is the same way I was using the RadManager. Also have timers that trigger come of the controls to refresh.

Im my case the sIEve shows DOM object leak, and i see the increase from every refresh. Do you have any suggestions how to eliminate this DOM leaks?

Thank you,
Ruben.

0
ROBERT HUNTER
Top achievements
Rank 1
answered on 02 Feb 2010, 09:48 AM
Hi

Not to sure, the reason we were gettting them is because we weren't using them.  Perhaps IEJSLeaksDetector.exe (MS tool for finding leaks) may help, it gives more info than sIEve as to where the leak originates from, so it might help

R
Tags
General Discussions
Asked by
ROBERT HUNTER
Top achievements
Rank 1
Answers by
ROBERT HUNTER
Top achievements
Rank 1
Veli
Telerik team
Ruben Hakopian
Top achievements
Rank 1
Tsvetoslav
Telerik team
rubenhak
Top achievements
Rank 1
Share this question
or