View Full Version : Memory Leakage in Store

14 Sep 2016, 8:05 AM
When we create store like below,

var myStore = Ext.create (http://docs.sencha.com/extjs/4.1.1/#!/api/Ext-method-create)('Ext.data.Store (http://docs.sencha.com/extjs/4.1.1/#!/api/Ext.data.Store)', {
fields: [{
name: 'id', type: 'string'
name: 'john', type: 'string'
proxy: {
type: 'ajax',
url: '/users.json',
reader: {
type: 'json',
root: 'users'
autoLoad: true

If I'm not declaring model, I added fields config in store directly. Then my question is, on every store load store will
create new model instance? or it will be only one instance in heap memory.

I checked with chrome dev tool, it is showing multiple instance of store. That's why it has huge memory leakage.
I'm using ExtJs 4.1.1. and Chrome v53.

Gary Schlosberg
14 Sep 2016, 3:59 PM
Can you please post a test case which exhibits the memory leak you are seeing?