PDA

View Full Version : Memory issues



taxidriver
24 Jan 2011, 11:26 PM
I have an Ext application where there are tabpanels, gridpanels etc.
With Firefox memory reaches about 300MB, BUT after closing and tabs, grids or any other Ext element this number does not change!!!
The same occurs with IE 8, too.
Is there any properly Ext destroying method in order to clean-up browser memory?

Any idea?

25 Jan 2011, 10:39 AM
hard to tell what's going on. You probably need someone to look at your code and figure out what you're doing wrong.

valititi
25 Jan 2011, 10:46 AM
hey taxidriver ! "someone to look at your code" may be exactly Jay ! :-) his is very strong exactly for this problems... :-)
Me, I have a very heavy desktop, with 40-50 windows. And, IF YOU CLOSE FIREBUG, it never depass 120-130 Mo (knowing that there are simple websites which take, for firefox, some 70-80Mo). So, Ext consumes very small ressources... For me, at least :-)
... :-)

hendricd
25 Jan 2011, 5:32 PM
Make sure to cleanup any global or namespaced references to all those components you're creating:



myApp.superHugeGrid = null;
myApp.immenselyNestedTab = null;
If they survive, the JS-Garbage Collector sees 'in-use' references to entire unused layouts.

;)