{"action":"created","issue":{"url":"https://api.github.com/repos/kenahrens/newrelic-pm2-plugin/issues/3","repository_url":"https://api.github.com/repos/kenahrens/newrelic-pm2-plugin","labels_url":"https://api.github.com/repos/kenahrens/newrelic-pm2-plugin/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/kenahrens/newrelic-pm2-plugin/issues/3/comments","events_url":"https://api.github.com/repos/kenahrens/newrelic-pm2-plugin/issues/3/events","html_url":"https://github.com/kenahrens/newrelic-pm2-plugin/issues/3","id":178352467,"number":3,"title":"Version 1.0.1 leaks file handles","user":{"login":"375gnu","id":1612688,"avatar_url":"https://avatars.githubusercontent.com/u/1612688?v=3","gravatar_id":"","url":"https://api.github.com/users/375gnu","html_url":"https://github.com/375gnu","followers_url":"https://api.github.com/users/375gnu/followers","following_url":"https://api.github.com/users/375gnu/following{/other_user}","gists_url":"https://api.github.com/users/375gnu/gists{/gist_id}","starred_url":"https://api.github.com/users/375gnu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/375gnu/subscriptions","organizations_url":"https://api.github.com/users/375gnu/orgs","repos_url":"https://api.github.com/users/375gnu/repos","events_url":"https://api.github.com/users/375gnu/events{/privacy}","received_events_url":"https://api.github.com/users/375gnu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":8,"created_at":"2016-09-21T13:49:28Z","updated_at":"2016-09-26T18:28:16Z","closed_at":null,"body":"Hi!\r\n\r\nWe use plugin version 1.0.1 with bundled pm2 version 0.12.16.\r\n\r\nEvery 30 sec plugin connects to pm2 daemon through unix socket, with every connection a new file descriptor is created, but not closed. So file handles are exhausted after some time."},"comment":{"url":"https://api.github.com/repos/kenahrens/newrelic-pm2-plugin/issues/comments/249655310","html_url":"https://github.com/kenahrens/newrelic-pm2-plugin/issues/3#issuecomment-249655310","issue_url":"https://api.github.com/repos/kenahrens/newrelic-pm2-plugin/issues/3","id":249655310,"user":{"login":"kenahrens","id":6477586,"avatar_url":"https://avatars.githubusercontent.com/u/6477586?v=3","gravatar_id":"","url":"https://api.github.com/users/kenahrens","html_url":"https://github.com/kenahrens","followers_url":"https://api.github.com/users/kenahrens/followers","following_url":"https://api.github.com/users/kenahrens/following{/other_user}","gists_url":"https://api.github.com/users/kenahrens/gists{/gist_id}","starred_url":"https://api.github.com/users/kenahrens/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kenahrens/subscriptions","organizations_url":"https://api.github.com/users/kenahrens/orgs","repos_url":"https://api.github.com/users/kenahrens/repos","events_url":"https://api.github.com/users/kenahrens/events{/privacy}","received_events_url":"https://api.github.com/users/kenahrens/received_events","type":"User","site_admin":false},"created_at":"2016-09-26T18:28:16Z","updated_at":"2016-09-26T18:28:16Z","body":"@hatemosphere - thanks sorry been away from my desk all day. The way I tested this was by removing the POST to New Relic and turning the time way down like 1s poll cycle instead of 30s. What I found was there are a few sockets / files that are opened at startup, but they are no longer increasing over time. Are you seeing them increasing or are they staying at 254?\r\n\r\nAnd regarding the need to explicitly disconnect, it wasn't clear from the PM2 docs that was required. It was some trial-and-error that got me to that approach. If you have a good source for PM2 docs please do share.  :)"}}
{"actor":{"display_login":"kenahrens"}}