{"action":"opened","issue":{"url":"https://api.github.com/repos/nodejs/nan/issues/501","labels_url":"https://api.github.com/repos/nodejs/nan/issues/501/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/nan/issues/501/comments","events_url":"https://api.github.com/repos/nodejs/nan/issues/501/events","html_url":"https://github.com/nodejs/nan/issues/501","id":113313312,"number":501,"title":"Memory leak when using asynch","user":{"login":"oferh","id":493344,"avatar_url":"https://avatars.githubusercontent.com/u/493344?v=3","gravatar_id":"","url":"https://api.github.com/users/oferh","html_url":"https://github.com/oferh","followers_url":"https://api.github.com/users/oferh/followers","following_url":"https://api.github.com/users/oferh/following{/other_user}","gists_url":"https://api.github.com/users/oferh/gists{/gist_id}","starred_url":"https://api.github.com/users/oferh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/oferh/subscriptions","organizations_url":"https://api.github.com/users/oferh/orgs","repos_url":"https://api.github.com/users/oferh/repos","events_url":"https://api.github.com/users/oferh/events{/privacy}","received_events_url":"https://api.github.com/users/oferh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-10-26T09:19:34Z","updated_at":"2015-10-26T09:19:34Z","closed_at":null,"body":"I've created a minimal asynchronous addon based on async_pi_estimate and ran it in a loop. It appears that there is a memory leak when using it because the code itself doesn't allocate dynamic memory but after running 200K iterations the memory footprint is as follows:\r\n  PID USER      PR  NI    VIRT    RES    SHR S  %CPU %MEM     TIME+ COMMAND                                                                          \r\n29684 ofer      20   0  813.3m 161.8m   7.1m S   0.0  2.0   0:03.29 node   \r\n\r\nThe code is available [in this gist](https://gist.github.com/oferh/bdde17c52f5bc97fdd42)\r\n"}}