{"action":"created","issue":{"url":"https://api.github.com/repos/andsel/moquette/issues/313","repository_url":"https://api.github.com/repos/andsel/moquette","labels_url":"https://api.github.com/repos/andsel/moquette/issues/313/labels{/name}","comments_url":"https://api.github.com/repos/andsel/moquette/issues/313/comments","events_url":"https://api.github.com/repos/andsel/moquette/issues/313/events","html_url":"https://github.com/andsel/moquette/issues/313","id":229986087,"number":313,"title":"Performance impact throw logging system","user":{"login":"AndreasMager","id":5646732,"avatar_url":"https://avatars2.githubusercontent.com/u/5646732?v=3","gravatar_id":"","url":"https://api.github.com/users/AndreasMager","html_url":"https://github.com/AndreasMager","followers_url":"https://api.github.com/users/AndreasMager/followers","following_url":"https://api.github.com/users/AndreasMager/following{/other_user}","gists_url":"https://api.github.com/users/AndreasMager/gists{/gist_id}","starred_url":"https://api.github.com/users/AndreasMager/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/AndreasMager/subscriptions","organizations_url":"https://api.github.com/users/AndreasMager/orgs","repos_url":"https://api.github.com/users/AndreasMager/repos","events_url":"https://api.github.com/users/AndreasMager/events{/privacy}","received_events_url":"https://api.github.com/users/AndreasMager/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":1,"created_at":"2017-05-19T14:07:44Z","updated_at":"2017-05-19T15:33:46Z","closed_at":null,"body":"I have started some performance test and identified that the logging system slows down the system a lot.\r\n\r\nMy setup is 2 clients and 1 server. Each one of them is on an independent machine. \r\nClient 1 sends 200000 messages on a single topic with QOS 0 and not retained.\r\nClient 2 has subscribed to this topic.\r\n\r\nVernmq(default config) needs 6 seconds to receive and send this messages.\r\n\r\nmoqutte(default config) needs for this task 18 seconds.\r\n\r\nIf change both logging level from Info to Error here:\r\nhttps://github.com/andsel/moquette/blob/master/distribution/src/main/resources/log4j.properties#L5\r\nThan moquette needs only 5 seconds.\r\n\r\nSome ideas to address this issue:\r\n* remove logging for each message.\r\n* reduce the log level to debug for message logging.\r\n* update to log4j2 async & gc improved logging\r\n"},"comment":{"url":"https://api.github.com/repos/andsel/moquette/issues/comments/302735774","html_url":"https://github.com/andsel/moquette/issues/313#issuecomment-302735774","issue_url":"https://api.github.com/repos/andsel/moquette/issues/313","id":302735774,"user":{"login":"andsel","id":1038545,"avatar_url":"https://avatars1.githubusercontent.com/u/1038545?v=3","gravatar_id":"","url":"https://api.github.com/users/andsel","html_url":"https://github.com/andsel","followers_url":"https://api.github.com/users/andsel/followers","following_url":"https://api.github.com/users/andsel/following{/other_user}","gists_url":"https://api.github.com/users/andsel/gists{/gist_id}","starred_url":"https://api.github.com/users/andsel/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/andsel/subscriptions","organizations_url":"https://api.github.com/users/andsel/orgs","repos_url":"https://api.github.com/users/andsel/repos","events_url":"https://api.github.com/users/andsel/events{/privacy}","received_events_url":"https://api.github.com/users/andsel/received_events","type":"User","site_admin":false},"created_at":"2017-05-19T15:33:45Z","updated_at":"2017-05-19T15:33:45Z","body":"@AndreasMager looks like Moquette is head to head with VerneMQ ?\n\nOn Fri, May 19, 2017 at 5:16 PM, windbender <notifications@github.com>\nwrote:\n\n> @AndreasMager <https://github.com/andreasmager> have you done specific\n> profiling to confirm that the performance deficiency is related to logging?\n> No doubt, efficient logging would be helpful! :-)\n>\n> —\n> You are receiving this because you are subscribed to this thread.\n> Reply to this email directly, view it on GitHub\n> <https://github.com/andsel/moquette/issues/313#issuecomment-302731035>,\n> or mute the thread\n> <https://github.com/notifications/unsubscribe-auth/AA_Y0S7NyI5fICDeEizbBkQpiIgkXBFKks5r7bJYgaJpZM4NgkkY>\n> .\n>\n"}}
{"actor":{"display_login":"andsel"}}