{"action":"created","issue":{"url":"https://api.github.com/repos/spesmilo/electrum-server/issues/121","labels_url":"https://api.github.com/repos/spesmilo/electrum-server/issues/121/labels{/name}","comments_url":"https://api.github.com/repos/spesmilo/electrum-server/issues/121/comments","events_url":"https://api.github.com/repos/spesmilo/electrum-server/issues/121/events","html_url":"https://github.com/spesmilo/electrum-server/issues/121","id":104526630,"number":121,"title":"Server Uses Excessive CPU Power","user":{"login":"tl121","id":8974968,"avatar_url":"https://avatars.githubusercontent.com/u/8974968?v=3","gravatar_id":"","url":"https://api.github.com/users/tl121","html_url":"https://github.com/tl121","followers_url":"https://api.github.com/users/tl121/followers","following_url":"https://api.github.com/users/tl121/following{/other_user}","gists_url":"https://api.github.com/users/tl121/gists{/gist_id}","starred_url":"https://api.github.com/users/tl121/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tl121/subscriptions","organizations_url":"https://api.github.com/users/tl121/orgs","repos_url":"https://api.github.com/users/tl121/repos","events_url":"https://api.github.com/users/tl121/events{/privacy}","received_events_url":"https://api.github.com/users/tl121/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2015-09-02T16:53:11Z","updated_at":"2015-09-10T07:16:39Z","closed_at":null,"body":"On a Ubutntu 14.04 machine with 8 GB RAM and an SSD, I observe that Electrum Server uses much more CPU time than bitcoind.  With normal network load, accumulated CPU time (measured by TOP) is at least 3 times that of Bitcoin core.  With large blocks, this can be 9 times greater.  In some cases, I have observed server logs that showed Electrum taking over 60 minutes to process one block.\r\n\r\nThe symptoms of server overload under high network load is that the server lags.   When the blocksize increases there is likely to be a serious problem even with servers running on fast machines, calling into question the viability of Electrum.\r\n\r\nAs a first step, an analysis of Electrum performance is needed. Other related performance problems are the very long time needed for server shutdown, increasing the likelihood of database corruption.\r\n"},"comment":{"url":"https://api.github.com/repos/spesmilo/electrum-server/issues/comments/139136135","html_url":"https://github.com/spesmilo/electrum-server/issues/121#issuecomment-139136135","issue_url":"https://api.github.com/repos/spesmilo/electrum-server/issues/121","id":139136135,"user":{"login":"ecdsa","id":2343238,"avatar_url":"https://avatars.githubusercontent.com/u/2343238?v=3","gravatar_id":"","url":"https://api.github.com/users/ecdsa","html_url":"https://github.com/ecdsa","followers_url":"https://api.github.com/users/ecdsa/followers","following_url":"https://api.github.com/users/ecdsa/following{/other_user}","gists_url":"https://api.github.com/users/ecdsa/gists{/gist_id}","starred_url":"https://api.github.com/users/ecdsa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ecdsa/subscriptions","organizations_url":"https://api.github.com/users/ecdsa/orgs","repos_url":"https://api.github.com/users/ecdsa/repos","events_url":"https://api.github.com/users/ecdsa/events{/privacy}","received_events_url":"https://api.github.com/users/ecdsa/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T07:16:39Z","updated_at":"2015-09-10T07:16:39Z","body":"note: you can check the queue length with this command:\r\n\r\n```\r\nsu electrum -c \"./run_electrum_server debug chain_proc.queue.qsize\\(\\)\"\r\n```"}}