{"action":"closed","issue":{"url":"https://api.github.com/repos/calderas/leaky-mcleakerson/issues/2","repository_url":"https://api.github.com/repos/calderas/leaky-mcleakerson","labels_url":"https://api.github.com/repos/calderas/leaky-mcleakerson/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/calderas/leaky-mcleakerson/issues/2/comments","events_url":"https://api.github.com/repos/calderas/leaky-mcleakerson/issues/2/events","html_url":"https://github.com/calderas/leaky-mcleakerson/issues/2","id":116606805,"number":2,"title":"Memory on tests","user":{"login":"calderas","id":118375,"avatar_url":"https://avatars.githubusercontent.com/u/118375?v=3","gravatar_id":"","url":"https://api.github.com/users/calderas","html_url":"https://github.com/calderas","followers_url":"https://api.github.com/users/calderas/followers","following_url":"https://api.github.com/users/calderas/following{/other_user}","gists_url":"https://api.github.com/users/calderas/gists{/gist_id}","starred_url":"https://api.github.com/users/calderas/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calderas/subscriptions","organizations_url":"https://api.github.com/users/calderas/orgs","repos_url":"https://api.github.com/users/calderas/repos","events_url":"https://api.github.com/users/calderas/events{/privacy}","received_events_url":"https://api.github.com/users/calderas/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2015-11-12T18:08:14Z","updated_at":"2016-09-01T12:30:39Z","closed_at":"2016-09-01T12:30:39Z","body":"After upgrading to Ember 1.13.10 running tests on our app started crashing chrome.\r\n\r\nTests on this repo try to show a similar scenario where memory consumption keep increasing test after test, although gc runs more frequently here but not **all** memory is cleaned up. (maybe this is how it's supposed to work ?)\r\n\r\nAlso looking at the timeline seems like event listeners remain after tests have completed and detached elements show up on heap profiles.\r\n\r\n<img width=\"1432\" alt=\"screen shot 2015-11-12 at 10 24 27 am\" src=\"https://cloud.githubusercontent.com/assets/118375/11126607/ef067318-892c-11e5-8a4d-fe75297533cb.png\">\r\n\r\n<img width=\"1267\" alt=\"screen shot 2015-11-12 at 10 43 50 am\" src=\"https://cloud.githubusercontent.com/assets/118375/11126608/f09d0494-892c-11e5-8c0f-aba694f2b135.png\">\r\n\r\nTrying to log memory stats for post analysis I can get this chart which shows constant garbage collection but memory size keeps increasing, in our app cleanup is not this nice\r\nhttps://github.com/calderas/leaky-mcleakerson/blob/master/tests/helpers/memory-stats.js \r\n\r\n\r\nAlso, this only happens on our app but I haven't found a way to replicate it here, lots of **EmberMorph** allocated between tests:\r\n<img width=\"1435\" alt=\"screen shot 2015-11-11 at 6 20 49 pm\" src=\"https://cloud.githubusercontent.com/assets/118375/11127473/bcaf5f92-8931-11e5-8f2a-9a33a87b02a4.png\">\r\n\r\n\r\n### memory \r\n\r\nrunning tests 300 times\r\n\r\n* memory drops when running unit tests on ember 1.12\r\n* memory allocated for tests is almost twice on ember 1.13 & 2.1\r\n\r\n![screen shot 2015-11-16 at 12 59 31 pm](https://cloud.githubusercontent.com/assets/118375/11191027/0947a19c-8c67-11e5-97ea-6d54fcdd7864.png)\r\n\r\n![screen shot 2015-11-16 at 12 58 20 pm](https://cloud.githubusercontent.com/assets/118375/11191025/094193ba-8c67-11e5-920a-741ac90b69e6.png)\r\n\r\n![screen shot 2015-11-16 at 12 58 49 pm](https://cloud.githubusercontent.com/assets/118375/11191026/09445672-8c67-11e5-8334-2ab8ce35dc60.png)"}}
{"actor":{"display_login":"calderas"}}