{"action":"created","issue":{"url":"https://api.github.com/repos/ssbc/scuttlebot/issues/82","labels_url":"https://api.github.com/repos/ssbc/scuttlebot/issues/82/labels{/name}","comments_url":"https://api.github.com/repos/ssbc/scuttlebot/issues/82/comments","events_url":"https://api.github.com/repos/ssbc/scuttlebot/issues/82/events","html_url":"https://github.com/ssbc/scuttlebot/issues/82","id":55171509,"number":82,"title":"pub server croaking with high swap","user":{"login":"pfraze","id":1270099,"avatar_url":"https://avatars.githubusercontent.com/u/1270099?v=3","gravatar_id":"","url":"https://api.github.com/users/pfraze","html_url":"https://github.com/pfraze","followers_url":"https://api.github.com/users/pfraze/followers","following_url":"https://api.github.com/users/pfraze/following{/other_user}","gists_url":"https://api.github.com/users/pfraze/gists{/gist_id}","starred_url":"https://api.github.com/users/pfraze/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pfraze/subscriptions","organizations_url":"https://api.github.com/users/pfraze/orgs","repos_url":"https://api.github.com/users/pfraze/repos","events_url":"https://api.github.com/users/pfraze/events{/privacy}","received_events_url":"https://api.github.com/users/pfraze/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/ssbc/scuttlebot/labels/bug","name":"bug","color":"fc2929"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2015-01-22T16:06:20Z","updated_at":"2015-01-26T23:18:13Z","closed_at":null,"body":"after leaving my pub overnight, i sshed into the vps and tried to create an invite (`./bin.js invite.create 5`). the ssh session was lagging, so i already knew something was up. then the invite never emitted - the command just hung.\r\n\r\ni ran `iotop` and got this output:\r\n\r\n![screen shot 2015-01-22 at 9 36 20 am](https://cloud.githubusercontent.com/assets/1270099/5858693/be51d266-a21a-11e4-84af-85af65e0e59d.png)\r\n\r\n`node ./run` is scuttlebot. as soon as i restarted the process, swap dropped back to 0 and all was well\r\n\r\nunfortunately, i didnt grab the `htop` stats before restart, but here it is after\r\n\r\n![screen shot 2015-01-22 at 9 56 06 am](https://cloud.githubusercontent.com/assets/1270099/5859097/629b7bd6-a21d-11e4-90c2-1bcb531ad3ba.png)\r\n\r\nif i'm interpreting correctly, we've got 69MB in resident memory and over a gig in virtual, which suggests quite a bit of memory is swapped out (though i'm unsure why the swap meter on top left only shows 46 mb). either way, the virtual footprint seems way too high. \r\n\r\nalso, since taking that screenshot (about 5 min ago) the res & virt has climbed 5mb. it looks like it's climbing by about a `mb` a minute."},"comment":{"url":"https://api.github.com/repos/ssbc/scuttlebot/issues/comments/71559433","html_url":"https://github.com/ssbc/scuttlebot/issues/82#issuecomment-71559433","issue_url":"https://api.github.com/repos/ssbc/scuttlebot/issues/82","id":71559433,"user":{"login":"dominictarr","id":259374,"avatar_url":"https://avatars.githubusercontent.com/u/259374?v=3","gravatar_id":"","url":"https://api.github.com/users/dominictarr","html_url":"https://github.com/dominictarr","followers_url":"https://api.github.com/users/dominictarr/followers","following_url":"https://api.github.com/users/dominictarr/following{/other_user}","gists_url":"https://api.github.com/users/dominictarr/gists{/gist_id}","starred_url":"https://api.github.com/users/dominictarr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dominictarr/subscriptions","organizations_url":"https://api.github.com/users/dominictarr/orgs","repos_url":"https://api.github.com/users/dominictarr/repos","events_url":"https://api.github.com/users/dominictarr/events{/privacy}","received_events_url":"https://api.github.com/users/dominictarr/received_events","type":"User","site_admin":false},"created_at":"2015-01-26T23:18:12Z","updated_at":"2015-01-26T23:18:12Z","body":"@pfraze can you link me to any documentation on how you use node-inspector to see into closures cleanup?"}}