mercredi 3 juin 2015

Ember application memory leak

I am investigating a memory leak issue in an Ember (using Ember data) application. The issue happens in my tests where I call reset() on the Ember application after each test has finished. It turned out that the reset() doesn't remove all the references to container before creating a new one, which resulted in many containers hanging in the memory, the leakage is significant because a container keeps all the controllers and routes in cache.

I then use Chrome Dev Tool to profile the memory and one of the retaining paths that I got is: controller:product/create in 27138485 cache in Container @27017929 container in @26910113 13 in @26702605 code in function() @26588769 adapterFor in @26498509 prototype in function() @26491127 Store in Class @26491123 DS in Window / localhost:8889/tests @26461671

Has there anyone experienced such memory issue with Ember/Ember data as well?




Aucun commentaire:

Enregistrer un commentaire