jQWidgets Forums
jQuery UI Widgets › Forums › Lists › ComboBox › Memory leak with combobox and perhaps other components
Tagged: combobox, combobox destroy
This topic contains 12 replies, has 2 voices, and was last updated by cosostones 11 years, 8 months ago.
-
Author
-
Hello,
In my web application I need to destroy (not hiding) and recreate some components. For this purpose I use the ‘destroy’ method on the components but I noticed that the memory increase anyway. I used the ‘Chrome Developer tools’ to look at the memory and I noticed that some ‘element’ stay in memory even if there are not in the DOM anymore (true for the combobox and listbox but I didn’t try for other components).
Could you please let me know if there a way to destroy those ?
I host a picture to show you the memory : http://sdrv.ms/1dFA02V
Regards.
Hi cosostones,
Thanks for the feedback.
We will investigate the reported behavior and will add a work item, if confirmed.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHello Peter,
I would like to know if you confirmed the behavior I reported.
Regards.
Hi cosostones,
The status is resolved in jQWidgets 3.0.3.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHello,
I just tested the last version and it’s much better but I found others elements retains by the listbox and the core.
I host a picture to show you : http://sdrv.ms/1aK9Fiq.
Regards.
Hi cosostones,
If destroy method of a widget is called the consumed
memory will be released.Best Regards
Peter StoevIt is, I tested with the combobox and call the destroy method.
Hi cosostones,
We cannot confirm that behavior. On our side, with our test, the widget is not leaking after calling destroy and after the browser has collected its Garbage. Of course, the version we use is 3.0.3.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comOk, could you provide me one of your test to show me how you do and I will compare wiht mine ?
Regards.
Hi cosostones,
Even your screenshot shows that the elements are removed from the DOM. There is no leak.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comI know there are removed from the DOM but there are still in memory as my screenshot shows.
What you did on the combobox correct the leak for it but there still leaks on listbox and core.
Regards.
Hi cosostones,
jqxComboBox internally uses jqxListBox. None of these widgets leak memory according to us. All the event listeners used by these widgets are removed, all of the HTML Elements, CSS Classes and Attributes are removed, too. The jqxCore cannot leak because it does not have anything to leak inside. It does not have or add any HTML Elements, too.
Best Regards,
Peter StoevjQWidgets Team
http://www.jqwidgets.comHi Peter,
I tried a lot of times yesterday and it seems that the garbage take his time to collect disposed object. So it seems to be ok.
Thanks for your help.
Regards.
-
AuthorPosts
You must be logged in to reply to this topic.