{"action":"created","issue":{"url":"https://api.github.com/repos/kyuupichan/electrumx/issues/94","repository_url":"https://api.github.com/repos/kyuupichan/electrumx","labels_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/94/labels{/name}","comments_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/94/comments","events_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/94/events","html_url":"https://github.com/kyuupichan/electrumx/issues/94","id":198298491,"number":94,"title":"TCP handle leakage for \"stale\" connections","user":{"login":"shsmith","id":859149,"avatar_url":"https://avatars0.githubusercontent.com/u/859149?v=4","gravatar_id":"","url":"https://api.github.com/users/shsmith","html_url":"https://github.com/shsmith","followers_url":"https://api.github.com/users/shsmith/followers","following_url":"https://api.github.com/users/shsmith/following{/other_user}","gists_url":"https://api.github.com/users/shsmith/gists{/gist_id}","starred_url":"https://api.github.com/users/shsmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shsmith/subscriptions","organizations_url":"https://api.github.com/users/shsmith/orgs","repos_url":"https://api.github.com/users/shsmith/repos","events_url":"https://api.github.com/users/shsmith/events{/privacy}","received_events_url":"https://api.github.com/users/shsmith/received_events","type":"User","site_admin":false},"labels":[{"id":520532453,"url":"https://api.github.com/repos/kyuupichan/electrumx/labels/asyncio","name":"asyncio","color":"bfdadc","default":false}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":18,"created_at":"2017-01-02T06:04:48Z","updated_at":"2017-12-11T15:56:45Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"I have noticed that over time the number of IP handles reported by lsof continues to grow and far exceeds the number of connections reported by the sessions RPC.\r\n\r\nOne IP in particular appears over 1000 times, even though there is no active session for the IP.\r\n\r\nHere are the logs from 2 days ago when this IP briefly connected:\r\n>INFO:ElectrumX:[21536] SSL 41.144.95.105:52782, 666 total\r\nINFO:ServerManager:closing stale connections [19859, 21536, 20904, 21120, 6123, 21278, 21097, 21124, 21481]\r\n\r\nThis IP does not appear at all after that.\r\n\r\nPossibly related: the \"subs\" value in the getinfo RPC is much higher than the sum of subs for the sessions RPC. I suspect these are related to the stuck TCP handles.\r\n\r\nLive Munin charts: http://vps.hsmiths.com:49001/munin/electrumx-day.html\r\n\r\nA snapshot from near block 446220:\r\n >full lsof output: http://vps.hsmiths.com:49001/lsof.txt\r\n getinfo output: http://vps.hsmiths.com:49001/getinfo\r\n sessions output: http://vps.hsmiths.com:49001/sessions\r\n"},"comment":{"url":"https://api.github.com/repos/kyuupichan/electrumx/issues/comments/350766788","html_url":"https://github.com/kyuupichan/electrumx/issues/94#issuecomment-350766788","issue_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/94","id":350766788,"user":{"login":"mocmocamoc","id":7582496,"avatar_url":"https://avatars2.githubusercontent.com/u/7582496?v=4","gravatar_id":"","url":"https://api.github.com/users/mocmocamoc","html_url":"https://github.com/mocmocamoc","followers_url":"https://api.github.com/users/mocmocamoc/followers","following_url":"https://api.github.com/users/mocmocamoc/following{/other_user}","gists_url":"https://api.github.com/users/mocmocamoc/gists{/gist_id}","starred_url":"https://api.github.com/users/mocmocamoc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mocmocamoc/subscriptions","organizations_url":"https://api.github.com/users/mocmocamoc/orgs","repos_url":"https://api.github.com/users/mocmocamoc/repos","events_url":"https://api.github.com/users/mocmocamoc/events{/privacy}","received_events_url":"https://api.github.com/users/mocmocamoc/received_events","type":"User","site_admin":false},"created_at":"2017-12-11T15:56:45Z","updated_at":"2017-12-11T15:56:45Z","author_association":"NONE","body":"Has there been any further progress? At the moment lsof is showing hundreds of connections from one IP that never appears in the log at all. The previous instance exhausted its 10,000 file handles presumably for the same reason. Are regular restarts the only solution?"}}
{"actor":{"display_login":"mocmocamoc"}}