{"action":"created","issue":{"url":"https://api.github.com/repos/Atmosphere/atmosphere/issues/1951","repository_url":"https://api.github.com/repos/Atmosphere/atmosphere","labels_url":"https://api.github.com/repos/Atmosphere/atmosphere/issues/1951/labels{/name}","comments_url":"https://api.github.com/repos/Atmosphere/atmosphere/issues/1951/comments","events_url":"https://api.github.com/repos/Atmosphere/atmosphere/issues/1951/events","html_url":"https://github.com/Atmosphere/atmosphere/issues/1951","id":69650309,"number":1951,"title":"Reduce the number of AtmosphereResponse's inner object","user":{"login":"jfarcand","id":51285,"avatar_url":"https://avatars.githubusercontent.com/u/51285?v=3","gravatar_id":"","url":"https://api.github.com/users/jfarcand","html_url":"https://github.com/jfarcand","followers_url":"https://api.github.com/users/jfarcand/followers","following_url":"https://api.github.com/users/jfarcand/following{/other_user}","gists_url":"https://api.github.com/users/jfarcand/gists{/gist_id}","starred_url":"https://api.github.com/users/jfarcand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfarcand/subscriptions","organizations_url":"https://api.github.com/users/jfarcand/orgs","repos_url":"https://api.github.com/users/jfarcand/repos","events_url":"https://api.github.com/users/jfarcand/events{/privacy}","received_events_url":"https://api.github.com/users/jfarcand/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Atmosphere/atmosphere/labels/2.3.7","name":"2.3.7","color":"009800"},{"url":"https://api.github.com/repos/Atmosphere/atmosphere/labels/2.4.3","name":"2.4.3","color":"bfd4f2"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":20,"created_at":"2015-04-20T18:28:10Z","updated_at":"2016-02-15T14:08:26Z","closed_at":"2015-04-20T18:30:10Z","body":"As noted by @elakito, right now a new short lived gets created when 'getOutputStream' and 'getWriter' gets called. This is a non sense."},"comment":{"url":"https://api.github.com/repos/Atmosphere/atmosphere/issues/comments/184221221","html_url":"https://github.com/Atmosphere/atmosphere/issues/1951#issuecomment-184221221","issue_url":"https://api.github.com/repos/Atmosphere/atmosphere/issues/1951","id":184221221,"user":{"login":"jfarcand","id":51285,"avatar_url":"https://avatars.githubusercontent.com/u/51285?v=3","gravatar_id":"","url":"https://api.github.com/users/jfarcand","html_url":"https://github.com/jfarcand","followers_url":"https://api.github.com/users/jfarcand/followers","following_url":"https://api.github.com/users/jfarcand/following{/other_user}","gists_url":"https://api.github.com/users/jfarcand/gists{/gist_id}","starred_url":"https://api.github.com/users/jfarcand/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jfarcand/subscriptions","organizations_url":"https://api.github.com/users/jfarcand/orgs","repos_url":"https://api.github.com/users/jfarcand/repos","events_url":"https://api.github.com/users/jfarcand/events{/privacy}","received_events_url":"https://api.github.com/users/jfarcand/received_events","type":"User","site_admin":false},"created_at":"2016-02-15T14:08:26Z","updated_at":"2016-02-15T14:08:26Z","body":"@slovdahl My point with the garbage collection is if it hasn't executed, then true it will take more memory but if you configure the GC to execute more frequently, that issue won't exists. The root cause of this issue is to find which Atmosphere's object is holding a reference, and clear that reference. For example, the `destroy` method should set the `stream` + `writer` to null when called, so the GC can reclaim them more faster."}}