PDA

View Full Version : Ext Tree Memory Leak



FuryVII
12 Jun 2007, 7:21 AM
Using sIEve http://sourceforge.net/projects/ieleak/ I was testing my project and found memory leaks with regard to the two trees.

My interface is somewhat similar to the example at http://extjs.com/deploy/ext/examples/tree/two-trees.html

With that in mind I used the Ext example in sIEve and I also found the same leak. Everything is fine until the user refreshes (In sIEve it's F5 or just hitting Go again). That's when the leak occurs, about 4mb per refresh.

I used my limited knowledge and came up with nothing. Can anyone help me out on this one?

liggett78
12 Jun 2007, 11:47 PM
I also tried to test my app with Drip recently and upon clicking "Show DOM Leaks" was presented a whole bunch of elements apparently not freed by IE or something. So I too am not quite sure if this is something to worry about.
But even if you go to the Ext docs pages and browse a little bit through the examples, clicking here and there and let Drip show you the leaks afterwards, there would be a list of them, beginning with the loading mask etc. (all child elements of the "leaked" element count as "leaked" too).
I guess these are not real leaks, but pseudo-leaks as explained here: http://outofhanwell.com/ieleak/index.php?title=Fixing_Leaks

liggett78
13 Jun 2007, 12:08 AM
By the way, sIEve seems to ignore those "pseudo-leaks", at least it does not show a single leak for my app.

FuryVII
13 Jun 2007, 5:48 AM
Unfortunately accepting a leak is not an option, especially when it's 4mb with every visit to the page.

And since the example is giving identical leaks, I know it's not just my code.

pcorcoran
13 Jun 2007, 10:15 AM
I too have noticed a steady leak, albeit through empirical means.

I have an application with a tree on it. On WinXP / Firefox 2.0.0.4 I see a memory jump of a few megabytes per page reload. (For control purposes, I have disabled all extensions and tried this with only my Ext tree app open, with the same result.)

I have not noticed a leak on any of my Mac OSX browsers.

0xception
9 Jul 2007, 1:47 PM
I've also been noticing similar behavior with a basic tree panel loaded via treeLoader pulling json form the server, I have an autoRefresh function setup to reload the root node of the tree every 10 sec and every 10 sec i see the memory jump little by little... this does not seem to happen with grid/data store reloads... i'm using 1.1-rc1