{"action":"created","issue":{"url":"https://api.github.com/repos/bnoordhuis/node-heapdump/issues/56","labels_url":"https://api.github.com/repos/bnoordhuis/node-heapdump/issues/56/labels{/name}","comments_url":"https://api.github.com/repos/bnoordhuis/node-heapdump/issues/56/comments","events_url":"https://api.github.com/repos/bnoordhuis/node-heapdump/issues/56/events","html_url":"https://github.com/bnoordhuis/node-heapdump/issues/56","id":85007087,"number":56,"title":"In what part/s of an app where it is good to use heapdump","user":{"login":"aireol","id":7277937,"avatar_url":"https://avatars.githubusercontent.com/u/7277937?v=3","gravatar_id":"","url":"https://api.github.com/users/aireol","html_url":"https://github.com/aireol","followers_url":"https://api.github.com/users/aireol/followers","following_url":"https://api.github.com/users/aireol/following{/other_user}","gists_url":"https://api.github.com/users/aireol/gists{/gist_id}","starred_url":"https://api.github.com/users/aireol/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aireol/subscriptions","organizations_url":"https://api.github.com/users/aireol/orgs","repos_url":"https://api.github.com/users/aireol/repos","events_url":"https://api.github.com/users/aireol/events{/privacy}","received_events_url":"https://api.github.com/users/aireol/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-06-04T09:38:32Z","updated_at":"2015-06-04T10:02:21Z","closed_at":null,"body":"In what parts of my app should I use `heapdump` to collect heap snapshot? Is it enough to have one in my main __node.js__ app or should I place it on some of my __models__ (speculated to cause memory leaks)?\r\n\r\nThanks for your help"},"comment":{"url":"https://api.github.com/repos/bnoordhuis/node-heapdump/issues/comments/108817613","html_url":"https://github.com/bnoordhuis/node-heapdump/issues/56#issuecomment-108817613","issue_url":"https://api.github.com/repos/bnoordhuis/node-heapdump/issues/56","id":108817613,"user":{"login":"bnoordhuis","id":275871,"avatar_url":"https://avatars.githubusercontent.com/u/275871?v=3","gravatar_id":"","url":"https://api.github.com/users/bnoordhuis","html_url":"https://github.com/bnoordhuis","followers_url":"https://api.github.com/users/bnoordhuis/followers","following_url":"https://api.github.com/users/bnoordhuis/following{/other_user}","gists_url":"https://api.github.com/users/bnoordhuis/gists{/gist_id}","starred_url":"https://api.github.com/users/bnoordhuis/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bnoordhuis/subscriptions","organizations_url":"https://api.github.com/users/bnoordhuis/orgs","repos_url":"https://api.github.com/users/bnoordhuis/repos","events_url":"https://api.github.com/users/bnoordhuis/events{/privacy}","received_events_url":"https://api.github.com/users/bnoordhuis/received_events","type":"User","site_admin":false},"created_at":"2015-06-04T10:02:21Z","updated_at":"2015-06-04T10:02:21Z","body":"Heap snapshots are global, they capture the whole JS heap, not just parts of it.  I'd say the best place to include the module is in your main script."}}