RadGrid memory leak problems

12 posts, 0 answers
  1. ROBERT HUNTER
    ROBERT HUNTER avatar
    5 posts
    Member since:
    Aug 2008

    Posted 23 Sep 2009 Link to this post

    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
  2. ROBERT HUNTER
    ROBERT HUNTER avatar
    5 posts
    Member since:
    Aug 2008

    Posted 25 Sep 2009 Link to this post

    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


  3. UI for ASP.NET Ajax is Ready for VS 2017
  4. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 28 Sep 2009 Link to this post

    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.
  5. Veli
    Admin
    Veli avatar
    2002 posts

    Posted 28 Sep 2009 Link to this post

    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.
  6. Ruben Hakopian
    Ruben Hakopian avatar
    37 posts
    Member since:
    Nov 2009

    Posted 06 Jan 2010 Link to this post

    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.
  7. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 07 Jan 2010 Link to this post

    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.
  8. ROBERT HUNTER
    ROBERT HUNTER avatar
    5 posts
    Member since:
    Aug 2008

    Posted 21 Jan 2010 Link to this post

    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


  9. Tsvetoslav
    Admin
    Tsvetoslav avatar
    1823 posts

    Posted 21 Jan 2010 Link to this post

    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.
  10. Ruben Hakopian
    Ruben Hakopian avatar
    37 posts
    Member since:
    Nov 2009

    Posted 21 Jan 2010 Link to this post

    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.
  11. ROBERT HUNTER
    ROBERT HUNTER avatar
    5 posts
    Member since:
    Aug 2008

    Posted 01 Feb 2010 Link to this post

    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
  12. rubenhak
    rubenhak avatar
    58 posts
    Member since:
    Dec 2008

    Posted 01 Feb 2010 Link to this post

    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.

  13. ROBERT HUNTER
    ROBERT HUNTER avatar
    5 posts
    Member since:
    Aug 2008

    Posted 02 Feb 2010 Link to this post

    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
Back to Top
UI for ASP.NET Ajax is Ready for VS 2017