{"action":"created","issue":{"url":"https://api.github.com/repos/hyperledger/iroha/issues/223","repository_url":"https://api.github.com/repos/hyperledger/iroha","labels_url":"https://api.github.com/repos/hyperledger/iroha/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/hyperledger/iroha/issues/223/comments","events_url":"https://api.github.com/repos/hyperledger/iroha/issues/223/events","html_url":"https://github.com/hyperledger/iroha/issues/223","id":214199961,"number":223,"title":"Huge memory and CPU leak in iroha-main","user":{"login":"Warchant","id":1867551,"avatar_url":"https://avatars3.githubusercontent.com/u/1867551?v=3","gravatar_id":"","url":"https://api.github.com/users/Warchant","html_url":"https://github.com/Warchant","followers_url":"https://api.github.com/users/Warchant/followers","following_url":"https://api.github.com/users/Warchant/following{/other_user}","gists_url":"https://api.github.com/users/Warchant/gists{/gist_id}","starred_url":"https://api.github.com/users/Warchant/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Warchant/subscriptions","organizations_url":"https://api.github.com/users/Warchant/orgs","repos_url":"https://api.github.com/users/Warchant/repos","events_url":"https://api.github.com/users/Warchant/events{/privacy}","received_events_url":"https://api.github.com/users/Warchant/received_events","type":"User","site_admin":false},"labels":[{"id":436398351,"url":"https://api.github.com/repos/hyperledger/iroha/labels/bug","name":"bug","color":"ee0701","default":true}],"state":"open","locked":false,"assignee":{"login":"l4l","id":5658339,"avatar_url":"https://avatars1.githubusercontent.com/u/5658339?v=3","gravatar_id":"","url":"https://api.github.com/users/l4l","html_url":"https://github.com/l4l","followers_url":"https://api.github.com/users/l4l/followers","following_url":"https://api.github.com/users/l4l/following{/other_user}","gists_url":"https://api.github.com/users/l4l/gists{/gist_id}","starred_url":"https://api.github.com/users/l4l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l4l/subscriptions","organizations_url":"https://api.github.com/users/l4l/orgs","repos_url":"https://api.github.com/users/l4l/repos","events_url":"https://api.github.com/users/l4l/events{/privacy}","received_events_url":"https://api.github.com/users/l4l/received_events","type":"User","site_admin":false},"assignees":[{"login":"l4l","id":5658339,"avatar_url":"https://avatars1.githubusercontent.com/u/5658339?v=3","gravatar_id":"","url":"https://api.github.com/users/l4l","html_url":"https://github.com/l4l","followers_url":"https://api.github.com/users/l4l/followers","following_url":"https://api.github.com/users/l4l/following{/other_user}","gists_url":"https://api.github.com/users/l4l/gists{/gist_id}","starred_url":"https://api.github.com/users/l4l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l4l/subscriptions","organizations_url":"https://api.github.com/users/l4l/orgs","repos_url":"https://api.github.com/users/l4l/repos","events_url":"https://api.github.com/users/l4l/events{/privacy}","received_events_url":"https://api.github.com/users/l4l/received_events","type":"User","site_admin":false},{"login":"satellitex","id":6259384,"avatar_url":"https://avatars2.githubusercontent.com/u/6259384?v=3","gravatar_id":"","url":"https://api.github.com/users/satellitex","html_url":"https://github.com/satellitex","followers_url":"https://api.github.com/users/satellitex/followers","following_url":"https://api.github.com/users/satellitex/following{/other_user}","gists_url":"https://api.github.com/users/satellitex/gists{/gist_id}","starred_url":"https://api.github.com/users/satellitex/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/satellitex/subscriptions","organizations_url":"https://api.github.com/users/satellitex/orgs","repos_url":"https://api.github.com/users/satellitex/repos","events_url":"https://api.github.com/users/satellitex/events{/privacy}","received_events_url":"https://api.github.com/users/satellitex/received_events","type":"User","site_admin":false}],"milestone":null,"comments":3,"created_at":"2017-03-14T20:41:34Z","updated_at":"2017-03-16T12:31:48Z","closed_at":null,"body":"Branch: https://github.com/hyperledger/iroha/pull/209\r\n\r\nSteps to reproduce:\r\n1. run single node with default config\r\n    ```\r\n    docker run -it --name iroha hyperledger/iroha-docker\r\n    ```\r\n2. get IP of running node:\r\n   ```\r\n   docker inspect iroha | grep IPAddress\r\n   ```\r\n   (assume 172.17.0.2)\r\n   \r\n2. send 4 or 5 **different** queries on registration (different public key and alias)\r\n```\r\ncurl -X POST http://172.17.0.2:1204/account/register -d '{\"publicKey\":\"53IrRuiebs78YDdxrve6ZSp3rFbGvJB5fnGcRdVKTrw=\",\"alias\":\"bogdan1\",\"timestamp\":1485182435}'\r\ncurl -X POST http://172.17.0.2:1204/account/register -d '{\"publicKey\":\"43IrRuiebs78YDdxrve6ZSp3rFbGvJB5fnGcRdVKTrw=\",\"alias\":\"bogdan2\",\"timestamp\":1485182435}'\r\ncurl -X POST http://172.17.0.2:1204/account/register -d '{\"publicKey\":\"33IrRuiebs78YDdxrve6ZSp3rFbGvJB5fnGcRdVKTrw=\",\"alias\":\"bogdan3\",\"timestamp\":1485182435}'\r\ncurl -X POST http://172.17.0.2:1204/account/register -d '{\"publicKey\":\"23IrRuiebs78YDdxrve6ZSp3rFbGvJB5fnGcRdVKTrw=\",\"alias\":\"bogdan4\",\"timestamp\":1485182435}'\r\ncurl -X POST http://172.17.0.2:1204/account/register -d '{\"publicKey\":\"13IrRuiebs78YDdxrve6ZSp3rFbGvJB5fnGcRdVKTrw=\",\"alias\":\"bogdan5\",\"timestamp\":1485182435}'\r\n```\r\n\r\niroha will consume 100% CPU and 100% RAM in few seconds.\r\n\r\n**UPD**: you can limit memory for docker by passing `-m 2G` to `docker run`, if you want to"},"comment":{"url":"https://api.github.com/repos/hyperledger/iroha/issues/comments/287042895","html_url":"https://github.com/hyperledger/iroha/issues/223#issuecomment-287042895","issue_url":"https://api.github.com/repos/hyperledger/iroha/issues/223","id":287042895,"user":{"login":"l4l","id":5658339,"avatar_url":"https://avatars1.githubusercontent.com/u/5658339?v=3","gravatar_id":"","url":"https://api.github.com/users/l4l","html_url":"https://github.com/l4l","followers_url":"https://api.github.com/users/l4l/followers","following_url":"https://api.github.com/users/l4l/following{/other_user}","gists_url":"https://api.github.com/users/l4l/gists{/gist_id}","starred_url":"https://api.github.com/users/l4l/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/l4l/subscriptions","organizations_url":"https://api.github.com/users/l4l/orgs","repos_url":"https://api.github.com/users/l4l/repos","events_url":"https://api.github.com/users/l4l/events{/privacy}","received_events_url":"https://api.github.com/users/l4l/received_events","type":"User","site_admin":false},"created_at":"2017-03-16T12:31:48Z","updated_at":"2017-03-16T12:31:48Z","body":"Leak is still here\r\nworking on this"}}
{"actor":{"display_login":"l4l"}}