{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/2813","labels_url":"https://api.github.com/repos/nodejs/node/issues/2813/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/2813/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/2813/events","html_url":"https://github.com/nodejs/node/issues/2813","id":105996513,"number":2813,"title":"Large number of C++ objects unclaimed in node v0.12.7 ","user":{"login":"gireeshpunathil","id":6447530,"avatar_url":"https://avatars.githubusercontent.com/u/6447530?v=3","gravatar_id":"","url":"https://api.github.com/users/gireeshpunathil","html_url":"https://github.com/gireeshpunathil","followers_url":"https://api.github.com/users/gireeshpunathil/followers","following_url":"https://api.github.com/users/gireeshpunathil/following{/other_user}","gists_url":"https://api.github.com/users/gireeshpunathil/gists{/gist_id}","starred_url":"https://api.github.com/users/gireeshpunathil/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gireeshpunathil/subscriptions","organizations_url":"https://api.github.com/users/gireeshpunathil/orgs","repos_url":"https://api.github.com/users/gireeshpunathil/repos","events_url":"https://api.github.com/users/gireeshpunathil/events{/privacy}","received_events_url":"https://api.github.com/users/gireeshpunathil/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/nodejs/node/labels/memory","name":"memory","color":"eb6420"},{"url":"https://api.github.com/repos/nodejs/node/labels/tls","name":"tls","color":"fad8c7"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":6,"created_at":"2015-09-11T11:56:22Z","updated_at":"2015-09-11T16:21:36Z","closed_at":null,"body":"Node version: v0.12.7\r\n\r\nPlatform tested: Linux IA32\r\n\r\n1. Here is a standalone test case which reproduces the issue: https://github.com/gireeshpunathil/nodev0.12.7tlsmemoryleak\r\n\r\n2. Over time, Quite many objects of type WriteWrap, TLSWrap, SecureContext, TCP etc. pile up in the native heap, and the RSS growth drives node out of memory.\r\n\r\n3. Sample snapshots of the Object containment chain below. The leak is not apparent in the heapdump, as neither the comparison view nor the retention chain show up the anything, as these objects have lost their association with any JS objects.\r\n\r\n4. This issue seem related to https://github.com/nodejs/node/issues/1075 but as the code base is different here, a fix does not look straightforward.\r\n\r\n5. We migrated from v0.10 to v0.12 due to an outstanding memory leak in the former. It would be great if this can be fixed in v0.12.7\r\n\r\n![image](https://cloud.githubusercontent.com/assets/6447530/9814215/d2730f62-58a9-11e5-913c-86bc71746a1f.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/6447530/9814241/09e5db3c-58aa-11e5-81b9-e78313d0a877.png)\r\n\r\n![image](https://cloud.githubusercontent.com/assets/6447530/9814259/362c64ae-58aa-11e5-9913-2a39a4c5d2c8.png)\r\n\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/139590310","html_url":"https://github.com/nodejs/node/issues/2813#issuecomment-139590310","issue_url":"https://api.github.com/repos/nodejs/node/issues/2813","id":139590310,"user":{"login":"ChALkeR","id":291301,"avatar_url":"https://avatars.githubusercontent.com/u/291301?v=3","gravatar_id":"","url":"https://api.github.com/users/ChALkeR","html_url":"https://github.com/ChALkeR","followers_url":"https://api.github.com/users/ChALkeR/followers","following_url":"https://api.github.com/users/ChALkeR/following{/other_user}","gists_url":"https://api.github.com/users/ChALkeR/gists{/gist_id}","starred_url":"https://api.github.com/users/ChALkeR/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ChALkeR/subscriptions","organizations_url":"https://api.github.com/users/ChALkeR/orgs","repos_url":"https://api.github.com/users/ChALkeR/repos","events_url":"https://api.github.com/users/ChALkeR/events{/privacy}","received_events_url":"https://api.github.com/users/ChALkeR/received_events","type":"User","site_admin":false},"created_at":"2015-09-11T16:21:36Z","updated_at":"2015-09-11T16:21:36Z","body":"> Over time, Quite many objects of type WriteWrap, TLSWrap, SecureContext, TCP etc. pile up in the native heap, and the RSS growth drives node out of memory.\r\n\r\n#1522, #1529 — fixed in v1.8.2."}}