{"action":"created","issue":{"url":"https://api.github.com/repos/nats-io/gnatsd/issues/589","repository_url":"https://api.github.com/repos/nats-io/gnatsd","labels_url":"https://api.github.com/repos/nats-io/gnatsd/issues/589/labels{/name}","comments_url":"https://api.github.com/repos/nats-io/gnatsd/issues/589/comments","events_url":"https://api.github.com/repos/nats-io/gnatsd/issues/589/events","html_url":"https://github.com/nats-io/gnatsd/issues/589","id":259174735,"number":589,"title":"Very high CPU usage during initial TLS setup","user":{"login":"ripienaar","id":82342,"avatar_url":"https://avatars0.githubusercontent.com/u/82342?v=4","gravatar_id":"","url":"https://api.github.com/users/ripienaar","html_url":"https://github.com/ripienaar","followers_url":"https://api.github.com/users/ripienaar/followers","following_url":"https://api.github.com/users/ripienaar/following{/other_user}","gists_url":"https://api.github.com/users/ripienaar/gists{/gist_id}","starred_url":"https://api.github.com/users/ripienaar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ripienaar/subscriptions","organizations_url":"https://api.github.com/users/ripienaar/orgs","repos_url":"https://api.github.com/users/ripienaar/repos","events_url":"https://api.github.com/users/ripienaar/events{/privacy}","received_events_url":"https://api.github.com/users/ripienaar/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":9,"created_at":"2017-09-20T14:01:43Z","updated_at":"2017-09-21T17:40:36Z","closed_at":null,"author_association":"NONE","body":"## Defects \r\n\r\n#### Versions of `gnatsd` and affected client libraries used:\r\n\r\nserver 1.0.2 latest go client\r\n\r\n#### OS/Container environment:\r\n\r\ncentos 7 on ec2 t2.medium\r\n\r\n#### Steps or code to reproduce the issue:\r\n\r\ncreate 16 000 TLS connections as quick as you can\r\n \r\n#### Expected result:\r\n\r\nI know TLS is quite heavy and initial setup is costly but perhaps somewhere something can be tuned, this seems excessively slow\r\n\r\nOnce the initial TLS handshakes are done and connections are up CPU usage is back down to a good 2% no problem\r\n \r\n#### Actual result:\r\n\r\nNATS, for 90 seconds or so, using all available CPU on all cores\r\n"},"comment":{"url":"https://api.github.com/repos/nats-io/gnatsd/issues/comments/331229323","html_url":"https://github.com/nats-io/gnatsd/issues/589#issuecomment-331229323","issue_url":"https://api.github.com/repos/nats-io/gnatsd/issues/589","id":331229323,"user":{"login":"kozlovic","id":13736691,"avatar_url":"https://avatars3.githubusercontent.com/u/13736691?v=4","gravatar_id":"","url":"https://api.github.com/users/kozlovic","html_url":"https://github.com/kozlovic","followers_url":"https://api.github.com/users/kozlovic/followers","following_url":"https://api.github.com/users/kozlovic/following{/other_user}","gists_url":"https://api.github.com/users/kozlovic/gists{/gist_id}","starred_url":"https://api.github.com/users/kozlovic/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kozlovic/subscriptions","organizations_url":"https://api.github.com/users/kozlovic/orgs","repos_url":"https://api.github.com/users/kozlovic/repos","events_url":"https://api.github.com/users/kozlovic/events{/privacy}","received_events_url":"https://api.github.com/users/kozlovic/received_events","type":"User","site_admin":false},"created_at":"2017-09-21T17:40:36Z","updated_at":"2017-09-21T17:40:36Z","author_association":"MEMBER","body":"Have you configured to use specific ciphers or were you just listing the `help_tls`? I am not sure from your post if you did setup based on the tls help. If so, after building with Go 1.8, you may want to change the config."}}
{"actor":{"display_login":"kozlovic"}}