{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/12490","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/12490/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/12490/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/12490/events","html_url":"https://github.com/emberjs/ember.js/issues/12490","id":111907998,"number":12490,"title":"Acceptance tests leak Container on every test run.","user":{"login":"julkiewicz","id":660863,"avatar_url":"https://avatars.githubusercontent.com/u/660863?v=3","gravatar_id":"","url":"https://api.github.com/users/julkiewicz","html_url":"https://github.com/julkiewicz","followers_url":"https://api.github.com/users/julkiewicz/followers","following_url":"https://api.github.com/users/julkiewicz/following{/other_user}","gists_url":"https://api.github.com/users/julkiewicz/gists{/gist_id}","starred_url":"https://api.github.com/users/julkiewicz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/julkiewicz/subscriptions","organizations_url":"https://api.github.com/users/julkiewicz/orgs","repos_url":"https://api.github.com/users/julkiewicz/repos","events_url":"https://api.github.com/users/julkiewicz/events{/privacy}","received_events_url":"https://api.github.com/users/julkiewicz/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/emberjs/ember.js/labels/Needs%20Submitter%20Response","name":"Needs Submitter Response","color":"eb6420"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-10-16T20:47:22Z","updated_at":"2015-11-10T14:57:17Z","closed_at":"2015-10-17T16:05:14Z","body":"I came across this issue in my app. Basically I have a pretty large test suite and it hits Chrome tab memory limit. Clearly this is unacceptable, and prevents me from running tests on my integration server.\r\n\r\nHere is a JS Bin repro:\r\n\r\nhttp://jsbin.com/tudalurebo/1/edit?html,js,output\r\n\r\nSteps:\r\n1. Open Developer tools in a new tab.\r\n2. Open JSBin under Chrome.\r\n3. Wait for the Developer tools to hit \"debugger\" line.\r\n4. Take a Memory Snapshot (note, Chrome automatically continues once a snapshot is complete, not sure why that is).\r\n5. Continue 10x to better demonstrate a problem.\r\n6. Take another Memory Snapshot.\r\n7. Use comparison between Snapshot 2 and Snapshot 1 to see that memory is leaking, most notably \"Container\" objects that hold references to virtually everything else.\r\n8. Scroll to see +10 delta next to \"Container\".\r\n\r\nThe following screenshot demonstrates the results on my machine: \r\n\r\nhttps://files.slack.com/files-pri/T0451CN7C-F0CKSDG2W/zrzut_ekranu_2015-10-16_o_20.44.57.png\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/155441927","html_url":"https://github.com/emberjs/ember.js/issues/12490#issuecomment-155441927","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/12490","id":155441927,"user":{"login":"huguesdk","id":1168359,"avatar_url":"https://avatars.githubusercontent.com/u/1168359?v=3","gravatar_id":"","url":"https://api.github.com/users/huguesdk","html_url":"https://github.com/huguesdk","followers_url":"https://api.github.com/users/huguesdk/followers","following_url":"https://api.github.com/users/huguesdk/following{/other_user}","gists_url":"https://api.github.com/users/huguesdk/gists{/gist_id}","starred_url":"https://api.github.com/users/huguesdk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/huguesdk/subscriptions","organizations_url":"https://api.github.com/users/huguesdk/orgs","repos_url":"https://api.github.com/users/huguesdk/repos","events_url":"https://api.github.com/users/huguesdk/events{/privacy}","received_events_url":"https://api.github.com/users/huguesdk/received_events","type":"User","site_admin":false},"created_at":"2015-11-10T14:57:17Z","updated_at":"2015-11-10T14:57:17Z","body":"I’m working on a large Ember.js application and I have the same issue. I’m not using Ember CLI. `App.reset()` is called between each test.\r\n\r\nAt first I thought it was a PhantomJS problem but it happens also with Firefox. In PhantomJS, with Ember.js 1.9.1 and 570 tests, the memory usage increases by around 500 MiB. With the same tests in Ember.js 1.10.0, it grows by more than 1200 MiB.\r\n\r\nCurrently, with Ember 2.0 or 2.1, PhantomJS crashes after around 500 tests (out of 1000+) with a memory usage growing up by around 4 GiB.\r\n\r\nAny advice on how to debug this?"}}