{"action":"created","issue":{"url":"https://api.github.com/repos/kyuupichan/electrumx/issues/312","repository_url":"https://api.github.com/repos/kyuupichan/electrumx","labels_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/312/labels{/name}","comments_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/312/comments","events_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/312/events","html_url":"https://github.com/kyuupichan/electrumx/issues/312","id":273619432,"number":312,"title":"Single CPU core 100% usage","user":{"login":"erasmospunk","id":944152,"avatar_url":"https://avatars0.githubusercontent.com/u/944152?v=4","gravatar_id":"","url":"https://api.github.com/users/erasmospunk","html_url":"https://github.com/erasmospunk","followers_url":"https://api.github.com/users/erasmospunk/followers","following_url":"https://api.github.com/users/erasmospunk/following{/other_user}","gists_url":"https://api.github.com/users/erasmospunk/gists{/gist_id}","starred_url":"https://api.github.com/users/erasmospunk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erasmospunk/subscriptions","organizations_url":"https://api.github.com/users/erasmospunk/orgs","repos_url":"https://api.github.com/users/erasmospunk/repos","events_url":"https://api.github.com/users/erasmospunk/events{/privacy}","received_events_url":"https://api.github.com/users/erasmospunk/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-11-13T23:49:52Z","updated_at":"2018-03-03T08:43:06Z","closed_at":"2018-03-02T21:04:10Z","author_association":"CONTRIBUTOR","body":"I have noticed with Bitcoin Gold that when electrumx loses connection with the daemon it is stuck with 100% single core usage.\r\n\r\nFrom the logs:\r\n```\r\n2017-11-13 23:23:47,519:Daemon:ERROR:timeout error.  Retrying occasionally...\r\n2017-11-13 23:25:59,258:ElectrumX:INFO:[2765] SSL XXX.XXX.XXX.XXX:YYYYY, 572 total\r\n```\r\n\r\nThere is a gap of 2 minutes that the server is unresponsive to RPC calls, getting `request timed out after 15s`\r\n\r\nI noticed this a couple of times with some altcoins but with BTG, they did something and it happens more often.\r\n\r\nHave you noticed anything similar?\r\n\r\nEdit: forgot to mention that the `getinfo` RPC of the daemon works without an issue while ElectrumX is burning CPU cycles."},"comment":{"url":"https://api.github.com/repos/kyuupichan/electrumx/issues/comments/370131386","html_url":"https://github.com/kyuupichan/electrumx/issues/312#issuecomment-370131386","issue_url":"https://api.github.com/repos/kyuupichan/electrumx/issues/312","id":370131386,"user":{"login":"kyuupichan","id":3319176,"avatar_url":"https://avatars1.githubusercontent.com/u/3319176?v=4","gravatar_id":"","url":"https://api.github.com/users/kyuupichan","html_url":"https://github.com/kyuupichan","followers_url":"https://api.github.com/users/kyuupichan/followers","following_url":"https://api.github.com/users/kyuupichan/following{/other_user}","gists_url":"https://api.github.com/users/kyuupichan/gists{/gist_id}","starred_url":"https://api.github.com/users/kyuupichan/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kyuupichan/subscriptions","organizations_url":"https://api.github.com/users/kyuupichan/orgs","repos_url":"https://api.github.com/users/kyuupichan/repos","events_url":"https://api.github.com/users/kyuupichan/events{/privacy}","received_events_url":"https://api.github.com/users/kyuupichan/received_events","type":"User","site_admin":false},"created_at":"2018-03-03T08:43:06Z","updated_at":"2018-03-03T08:43:06Z","author_association":"OWNER","body":"@erasmospunk if something similar happens again, check the DB logs in the DB directory.  I have and they show the DBs can suck up a crazy amount of time moving data between levels."}}
{"actor":{"display_login":"kyuupichan"}}