[CLOSED] IE8 Memory leaking

Page 1 of 2 12 LastLast
  1. #1

    [CLOSED] IE8 Memory leaking

    Hi, I am experiencing a great issue of memory leak with the Ext.Net in the IE8.
    I saw some other threads here with the same subject, but not seems to be the same case that I detected.
    The memory usage of the browser is growing fastly (50~60Mb) at each new page that is loaded until roughly 1.5Gb when the IE crashes due to not enough memory and I cannot perceive any significative garbage collect by it.
    The application does not use any frame/iframe or Ext.History.
    Just loads a new page (window.location) at each request.
    The memory consuming seems to occupy more memory when the page has more data.
    I also tested with IE9, IE10 and Chrome, but the issue does not occurs in these browsers.

    To reproduce the issue I also tested with the samples of the Ext.Net with the sample GridPanel/ArrayGrid/Simple and besides the consuming was lower (30~50Mb) than my application at each refresh, the issue also was detected.

    These was the sample memory usage at each request with the Ext.Net, in Mb, starting with 10Mb with no page loaded:135,192,267,323,202,220,389,318

    I also tried with the samples of the pure extjs, directly from sencha web site with the sample extjs-build/examples/grid/paging.html. The memory consuming was also high, but much less and more stable than the case with Ext.Net.

    These was the sample memory usage at each request with the pure extjs, in Mb, starting with 10Mb with no page loaded:50,89,96,104,106,106,106,108,109.

    I guess that the main difference here can be the case of the samples in Ext.Net may be using frames, but it is not the case with my application.

    Do you know about any similar issue or workaround for this?

    Best regards, thanks,

    Jose Carlos.
    Last edited by Daniil; Oct 10, 2014 at 10:25 AM. Reason: [CLOSED]
  2. #2
    Hi,

    Yes, there is memory leaking in ExtJS. We reported about such problem to Sencha several times but unfortunatelly still no any feedback
    First, we want to see your test sample which reproduces the issue. May be we would be able to locate problem code
    Second, you try to reproduce the issue in empty page with resource manager only. If the issue is reproduciable then problem code is located in Ext.Net/ExtJS resources for sure.

    Also, I remember that was the problem with store reloading
    http://forums.ext.net/showthread.php...ED-Memory-leak

    Do you have consistently reloaded store?
  3. #3
    Hi Vladimir, thanks by your support,

    Quote Originally Posted by Vladimir View Post
    First, we want to see your test sample which reproduces the issue. May be we would be able to locate problem code
    The sample that I tried has the same behavior as the sample in the Ext.Net, located in GridPanel/ArrayGrid/Simple, that also have the same issue of memory leaking, as I commented.
    Of course, the application has some business rules complexity, but just as very basic sample, the code that I evaluated has similar funcionality as the code below:

    myController.cs
    public partial class myController : Controller
    {
        public virtual ActionResult Index()
        {
            IList<MyViewModel> myViewModelList = this.Service.MyViewModel_GetList();
    
            return View(ActionNames.Index, myViewModelList);
    
        }
    
    }
    Index.cshtml:
    @model IList<MyViewModel>
    
    @{   
        Layout = "~/Views/Shared/myLayout.cshtml";
    }
    
    @section pageBody
    { 
        var X = Html.X();
     
        X.Panel()
            .Border(false)
            .Layout(LayoutType.Fit)
            .Items(            
                X.GridPanel()
                    .Layout(LayoutType.Fit)
                    .Border(false)
                    .Store(X.StoreForModel())
                    .ColumnModel(
                        X.ColumnFor(Model, m => m.code).ToBuilder<Column.builder>().Flex(10),
                        X.ColumnFor(Model, m => m.description).ToBuilder<Column.Builder>().Flex(50)
                    )
                    .SelectionModel(
                            X.RowSelectionModel()
                                .Mode(SelectionMode.Single)
                                .Listeners(l => l.Select.Handler = "mySelectFunc(this);")
                    )
                    .Listeners(l => l.Added.Handler = "myAddedFunc(this);");
            );
    Quote Originally Posted by Vladimir View Post
    Second, you try to reproduce the issue in empty page with resource manager only. If the issue is reproduciable then problem code is located in Ext.Net/ExtJS resources for sure.
    I will try this scenario and let you know the results.

    Quote Originally Posted by Vladimir View Post
    Also, I remember that was the problem with store reloading
    http://forums.ext.net/showthread.php...ED-Memory-leak

    Do you have consistently reloaded store?
    There is no store reloading / ajaxProxy envolved in my cases. The data is loaded automatically together the page load as the sample above.

    Thank you, regards,

    Jose Carlos
    Last edited by Daniil; Apr 14, 2014 at 6:11 PM. Reason: Please use [CODE] tags
  4. #4
    The sample that I tried has the same behavior as the sample in the Ext.Net, located in GridPanel/ArrayGrid/Simple, that also have the same issue of memory leaking, as I commented.
    What steps are required to reprduce the issue? Refresh the page many times using browser refresh button?
  5. #5
    Quote Originally Posted by Vladimir View Post
    What steps are required to reprduce the issue? Refresh the page many times using browser refresh button?
    Hi, exactly, or just enter in the url field and press the return key.

    Regards,

    Jose Carlos.
  6. #6
    We tested with this sample.
    https://examples2.ext.net/#/GridPanel/ArrayGrid/Simple/

    Win7 64bit Professional + IE 8.0.7601

    No memory increase on page reload.
  7. #7
    Quote Originally Posted by Daniil View Post
    We tested with this sample.
    https://examples2.ext.net/#/GridPanel/ArrayGrid/Simple/

    Win7 64bit Professional + IE 8.0.7601

    No memory increase on page reload.
    Hi Daniil, its very strange, I just tested the same sample page again in two different VMs and both are indicating memory leak.

    These are the sample that I just captured (in Mb):

    VM1 (Win7 32bit Professional + IE 8.0.7601.17514) => 10, 136, 162, 178, 240, 270, 340, 343, 344
    VM2 (Win7 64bit Ultimate + IE 8.0.7600.16385) => 10, 126, 200, 422, 459, 461, 462, 463

    All sample was captured through the task manager until the stabilization of the %cpu usage (equals to zero).
    The captured value corresponding to each refresh (F5) on the same page using the same tab of the browser.

    Curiously, all leaked memory is disposed when another site on another domain is opened over the same tab.

    Please, how do you performed your testes?

    Thank you, regards,

    Jose Carlos.
    Last edited by jcarlos; Apr 14, 2014 at 10:58 PM.
  8. #8
    Quote Originally Posted by jcarlos View Post
    Please, how do you performed your testes?
    1. Open this page in IE8:
    https://examples2.ext.net/#/GridPanel/ArrayGrid/Simple/

    2. Check the consumed memory in the Task Manager for the IE process.

    3. Press F5 a few items.

    4. Check the consumed memory in the Task Manager for the IE process.
  9. #9
    Hi, this is exactly what I also did, but it is important to emphasize that I waited for the entirely rendering of the components between each refresh.

    I don't know why your test had a different result from mine in two similar environments.

    Tomorrow I will try installing a fresh windows / IE8 in a new VM with no other additional software and check again this same test case.

    I will let you know the results.

    If you have any additional information that you can share, please post.

    Thank you, regards,

    Jose Carlos.
  10. #10
    Hi, sorry I had some other activities and could not test it before as I planned.
    But now I just tested the same case again in a new installed Windows 7 Professional SP1, 32 bits in a VM with 2GB of RAM, created only to this purpose.
    It was not installed any other additional software or Windows patches.
    Unfortunately, the results was the same as I got before, indicating a memory leak.
    These was the results of memory occupied by the browser at each refresh with F5 key (in MBytes):

    8,90,134,223,253,332,360,366,381,389

    But it is very strange that you could not reproduce in your environment as I reproduced in all the environments that I tried.
    It is very important to remember that the issue was detected in IE8 vs 8.0.7601.17514 but not with the IE10 when applying its compatibility view.

    Please, could you check it again with an environment with this exact same characteristics or inform me if I need to provide more info?

    Best regards, thanks,

    J.Carlos
Page 1 of 2 12 LastLast

Similar Threads

  1. [CLOSED] Memory leak
    By bbo1971 in forum 2.x Legacy Premium Help
    Replies: 35
    Last Post: Feb 08, 2013, 3:54 PM
  2. [1.5]Big bug for ext memory leak!
    By tms2003@126.com in forum 1.x Help
    Replies: 1
    Last Post: Dec 11, 2012, 9:24 AM
  3. [CLOSED] [1.2] Memory
    By Timothy in forum 1.x Legacy Premium Help
    Replies: 2
    Last Post: Mar 15, 2012, 6:31 PM
  4. Out of memory
    By theblackcat_2902 in forum 1.x Help
    Replies: 1
    Last Post: May 08, 2011, 1:09 AM
  5. Memory Leak in I.E.
    By crazypsdev in forum 1.x Help
    Replies: 6
    Last Post: Nov 09, 2009, 9:55 AM

Tags for this Thread

Posting Permissions