PDA

View Full Version : [CLOSED][3.0.RC2] Memory Leak? Paged Grid



crp_spaeth
23 Jun 2009, 3:13 PM
While Developing a bigger Application I run into a Memory Issue.

Our Application will contains grids with stuff like incremental search. Icremental search will call the store.load Function many times more than just using a PagingToolbar for example. While testing my components I could see a significant raising of the memory.

I gave the example page with remotepaging a try and after pressing the oaging a view times let increase memory page by page.

you can reconstruct this behavior by just open the paging example http://extjs.com/deploy/ext-3.0-rc2/examples/grid/paging.html
(http://extjs.com/deploy/ext-3.0-rc2/examples/grid/paging.html)

and run the following script via Firebug Console:



var temp = true;

var store = Ext.getCmp("ext-comp-1001").store;

var loadStore = function(){
if(temp) {
temp = !temp;
store.load(
{
params: {start:0, limit:25}
}
);
} else {
temp = !temp;
store.load({params:{start:25, limit:25}});
}
}
var task = {
run: loadStore,
interval: 3000 //3 give the store about 3 seconds to load
}
var runner = new Ext.util.TaskRunner();
runner.start(task);

after about 2 minutes you will see a memory usage increasement of round about 20 mb...

What do you think about that?

crp_spaeth
23 Jun 2009, 3:15 PM
Maybe I am wrong... After about 10 Minuts there doesn't show up any more memory increasment

evant
23 Jun 2009, 7:42 PM
Can't see any issue here, marking as closed.