{"action":"created","issue":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/12780","repository_url":"https://api.github.com/repos/emberjs/ember.js","labels_url":"https://api.github.com/repos/emberjs/ember.js/issues/12780/labels{/name}","comments_url":"https://api.github.com/repos/emberjs/ember.js/issues/12780/comments","events_url":"https://api.github.com/repos/emberjs/ember.js/issues/12780/events","html_url":"https://github.com/emberjs/ember.js/issues/12780","id":125236442,"number":12780,"title":"Router Not Cleaned Up After Acceptance Tests","user":{"login":"jamesarosen","id":2406,"avatar_url":"https://avatars.githubusercontent.com/u/2406?v=3","gravatar_id":"","url":"https://api.github.com/users/jamesarosen","html_url":"https://github.com/jamesarosen","followers_url":"https://api.github.com/users/jamesarosen/followers","following_url":"https://api.github.com/users/jamesarosen/following{/other_user}","gists_url":"https://api.github.com/users/jamesarosen/gists{/gist_id}","starred_url":"https://api.github.com/users/jamesarosen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jamesarosen/subscriptions","organizations_url":"https://api.github.com/users/jamesarosen/orgs","repos_url":"https://api.github.com/users/jamesarosen/repos","events_url":"https://api.github.com/users/jamesarosen/events{/privacy}","received_events_url":"https://api.github.com/users/jamesarosen/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2016-01-06T18:43:58Z","updated_at":"2016-03-12T15:54:22Z","closed_at":"2016-03-12T15:54:22Z","body":"I've been doing some memory profiling on my Ember app's tests suite. Our tests suites were failing in CI without providing any error message. After eliminating many other possible causes, I started to focus on out-of-memory errors.\r\n\r\nHere are two heap snapshots from the same test run, about 20 seconds (or about 20 tests) apart: [one](https://www.dropbox.com/s/3leiahbtthedtcw/tango-tests-1.heapsnapshot?dl=0), [two](https://www.dropbox.com/s/8n7nq0ef1srlxeb/tango-tests-2.heapsnapshot?dl=0)\r\n\r\n 1. load these in Chrome\r\n 1. select the second snapshot\r\n 1. Click the dropdown that has the value \"All Objects\" and select \"objects allocated between One and Two\"\r\n 1. Sort by Retained Size\r\n\r\nThe top entry, `Class` is dominated by instances of `router`. The second, `Array`, is dominated by `nextStates`.\r\n\r\nIt seems that `Ember.run(application, 'destroy');` does not properly clean up the `Router` and its internals."},"comment":{"url":"https://api.github.com/repos/emberjs/ember.js/issues/comments/195765614","html_url":"https://github.com/emberjs/ember.js/issues/12780#issuecomment-195765614","issue_url":"https://api.github.com/repos/emberjs/ember.js/issues/12780","id":195765614,"user":{"login":"stefanpenner","id":1377,"avatar_url":"https://avatars.githubusercontent.com/u/1377?v=3","gravatar_id":"","url":"https://api.github.com/users/stefanpenner","html_url":"https://github.com/stefanpenner","followers_url":"https://api.github.com/users/stefanpenner/followers","following_url":"https://api.github.com/users/stefanpenner/following{/other_user}","gists_url":"https://api.github.com/users/stefanpenner/gists{/gist_id}","starred_url":"https://api.github.com/users/stefanpenner/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stefanpenner/subscriptions","organizations_url":"https://api.github.com/users/stefanpenner/orgs","repos_url":"https://api.github.com/users/stefanpenner/repos","events_url":"https://api.github.com/users/stefanpenner/events{/privacy}","received_events_url":"https://api.github.com/users/stefanpenner/received_events","type":"User","site_admin":false},"created_at":"2016-03-12T15:54:22Z","updated_at":"2016-03-12T15:54:22Z","body":"i believe the issue was in an addon, such as ember-cli-mirage"}}