Browser memory keeps slowly growing

  1. #1

    Browser memory keeps slowly growing

    Hi,
    I created a web application using ext.net compenets. Design and functionality is very good.
    However am worried about one thing. If application running several hours browser memory keeps slowly growing.
    I thought, problem was caused by application setting or my programming.

    I made a test application:

    <%@ Page Language="C#"  %>
    <%@ Register Assembly="Ext.Net" Namespace="Ext.Net" TagPrefix="ext" %>
    
    <script runat="server">   
        
        /// <summary>
        /// Size of the string is there for a better demonstration
        /// </summary>
        /// <returns></returns>
        public string GetData()
        {
            var list = new System.Collections.Generic.List<string>();
            for (int i = 0; i < 200; i++)
            {
                list.Add(Guid.NewGuid().ToString());
            }
            return JSON.Serialize(list);
        }
        
        protected void Button1_Click(object sender, DirectEventArgs e) 
        {
            this.Label1.Text = this.GetData();
        }   
    </script>
    
    <html>
    <head runat="server">
        <title>Test application</title>
    </head>
    <body>
        <ext:ResourceManager ID="ResourceManager1" runat="server" />  
        <ext:Button ID="Button1" runat="server" Text="Button" OnDirectClick="Button1_Click" />        
        <ext:Label runat="server" ID="Label1"  />
    </body>
    </html>
    Using Ext.net 1.3
    Testing on FireFox 10.0.2, IE9, Chrome18

    When I click on the button (ID="Button1") many times (for example 100) memory keeps growing but is never released.
    I noticed this problem on your site https://examples2.ext.net/examples/T...asic/Overview/. When I let taskManager run for several hours,
    memory release never occurred.

    Please advise me on how do I ajax request to release the browser memory.
    Last edited by Daniil; May 23, 2012 at 10:25 AM. Reason: Please use [CODE] tags
  2. #2
    Hi,

    What maximum memory consumption did you observe?
    If you minimize and restore the browser then does it clean memory?

    In most cases, memory is released by browser when free memory is not enough
  3. #3
    Quote Originally Posted by Vladimir View Post
    Hi,

    What maximum memory consumption did you observe?
    If you minimize and restore the browser then does it clean memory?

    In most cases, memory is released by browser when free memory is not enough
    Hi Vladimir,

    Our company bought Ext.NET components six months ago. We are very happy with it.
    We started to make an application that periodically updates the data in chart and grid using TaskManager (DirectEvents - Update).
    After running our application, it has not responded in a few hours (about 12). The action maximated browser memory, and freezed.
    I was not during running this updates on my pc. When I come back, the browser consumed maximum memory (about 1.5GB) and displayed an error.

    I would like to ask you:
    Why when I am periodically updating the grid by the same amount of data in one time, is browser memory growing.?
    Can you advise me how can I design a webpage, which can be update (50 rows in the table, 6 collums) every 10 seconds whithout memory leak.?


    Thank you for your time.
  4. #4
    I will create test sample to reproduce the issue and post result here lately
  5. #5
    Quote Originally Posted by Vladimir View Post
    I will create test sample to reproduce the issue and post result here lately
    Thank you very much for your time.
  6. #6
    Hi,

    I was able to reproduce the issue, i updated a grid every 10 sec and memory is increased from 50 MB to 140 MB in two hours
    I was able reproduce the issue in pure ExtJS sample also (without Ext.Net). Other ExtJS members have the same issue
    http://www.sencha.com/forum/showthre...anel-and-Store

    At this moment, I have no any workaround. Only if reduce amount of store rebinding (reload store only if new (changed) data is available on the server side)
  7. #7
    The thread is related to this one.
    http://forums.ext.net/showthread.php?19142

    Here are some recommendations how to improve the situation.

Similar Threads

  1. Replies: 2
    Last Post: Jan 19, 2012, 12:42 PM
  2. Replies: 1
    Last Post: Oct 07, 2011, 8:34 AM
  3. Gridpanel is loading slowly
    By canbay in forum 1.x Help
    Replies: 1
    Last Post: Aug 17, 2011, 1:59 PM
  4. Out of memory
    By theblackcat_2902 in forum 1.x Help
    Replies: 1
    Last Post: May 08, 2011, 1:09 AM
  5. ComboBox make page slowly
    By rosegovia in forum 1.x Help
    Replies: 0
    Last Post: Jun 04, 2009, 11:25 AM

Tags for this Thread

Posting Permissions