{"action":"created","issue":{"url":"https://api.github.com/repos/emqtt/emqttd/issues/1566","repository_url":"https://api.github.com/repos/emqtt/emqttd","labels_url":"https://api.github.com/repos/emqtt/emqttd/issues/1566/labels{/name}","comments_url":"https://api.github.com/repos/emqtt/emqttd/issues/1566/comments","events_url":"https://api.github.com/repos/emqtt/emqttd/issues/1566/events","html_url":"https://github.com/emqtt/emqttd/issues/1566","id":314699807,"number":1566,"title":"too many time_wait connections and high CPU usage after disabling \"net.ipv4.tcp_tw_recycle\"","user":{"login":"bhzhu203","id":3523160,"avatar_url":"https://avatars2.githubusercontent.com/u/3523160?v=4","gravatar_id":"","url":"https://api.github.com/users/bhzhu203","html_url":"https://github.com/bhzhu203","followers_url":"https://api.github.com/users/bhzhu203/followers","following_url":"https://api.github.com/users/bhzhu203/following{/other_user}","gists_url":"https://api.github.com/users/bhzhu203/gists{/gist_id}","starred_url":"https://api.github.com/users/bhzhu203/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhzhu203/subscriptions","organizations_url":"https://api.github.com/users/bhzhu203/orgs","repos_url":"https://api.github.com/users/bhzhu203/repos","events_url":"https://api.github.com/users/bhzhu203/events{/privacy}","received_events_url":"https://api.github.com/users/bhzhu203/received_events","type":"User","site_admin":false},"labels":[{"id":22388528,"url":"https://api.github.com/repos/emqtt/emqttd/labels/question","name":"question","color":"cc317c","default":true}],"state":"open","locked":false,"assignee":{"login":"emqplus","id":11869,"avatar_url":"https://avatars0.githubusercontent.com/u/11869?v=4","gravatar_id":"","url":"https://api.github.com/users/emqplus","html_url":"https://github.com/emqplus","followers_url":"https://api.github.com/users/emqplus/followers","following_url":"https://api.github.com/users/emqplus/following{/other_user}","gists_url":"https://api.github.com/users/emqplus/gists{/gist_id}","starred_url":"https://api.github.com/users/emqplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emqplus/subscriptions","organizations_url":"https://api.github.com/users/emqplus/orgs","repos_url":"https://api.github.com/users/emqplus/repos","events_url":"https://api.github.com/users/emqplus/events{/privacy}","received_events_url":"https://api.github.com/users/emqplus/received_events","type":"User","site_admin":false},"assignees":[{"login":"emqplus","id":11869,"avatar_url":"https://avatars0.githubusercontent.com/u/11869?v=4","gravatar_id":"","url":"https://api.github.com/users/emqplus","html_url":"https://github.com/emqplus","followers_url":"https://api.github.com/users/emqplus/followers","following_url":"https://api.github.com/users/emqplus/following{/other_user}","gists_url":"https://api.github.com/users/emqplus/gists{/gist_id}","starred_url":"https://api.github.com/users/emqplus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emqplus/subscriptions","organizations_url":"https://api.github.com/users/emqplus/orgs","repos_url":"https://api.github.com/users/emqplus/repos","events_url":"https://api.github.com/users/emqplus/events{/privacy}","received_events_url":"https://api.github.com/users/emqplus/received_events","type":"User","site_admin":false},{"login":"terry-xiaoyu","id":11696433,"avatar_url":"https://avatars1.githubusercontent.com/u/11696433?v=4","gravatar_id":"","url":"https://api.github.com/users/terry-xiaoyu","html_url":"https://github.com/terry-xiaoyu","followers_url":"https://api.github.com/users/terry-xiaoyu/followers","following_url":"https://api.github.com/users/terry-xiaoyu/following{/other_user}","gists_url":"https://api.github.com/users/terry-xiaoyu/gists{/gist_id}","starred_url":"https://api.github.com/users/terry-xiaoyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/terry-xiaoyu/subscriptions","organizations_url":"https://api.github.com/users/terry-xiaoyu/orgs","repos_url":"https://api.github.com/users/terry-xiaoyu/repos","events_url":"https://api.github.com/users/terry-xiaoyu/events{/privacy}","received_events_url":"https://api.github.com/users/terry-xiaoyu/received_events","type":"User","site_admin":false}],"milestone":null,"comments":4,"created_at":"2018-04-16T15:11:14Z","updated_at":"2018-04-28T12:04:39Z","closed_at":null,"author_association":"NONE","body":"#### Environment\r\nemqttd 2.1.2\r\n\r\n\r\n- OS:     CentOS release 6.8  with linux kernel 4.15.15 /google BBR enabled\r\n- Erlang/OTP: emqttd 2.1.2\r\n- EMQ: emqttd 2.1.2\r\n\r\n#### Description\r\n\r\ntoo many time_wait connections and high CPU usage after disabling \"net.ipv4.tcp_tw_recycle\"\r\nfrp (fatedier/frp in github ) service connect to emqtt,showing like that\r\n\r\nnetstat -n | grep TIME_WAIT\r\ntcp        0      0 127.0.0.1:53168             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53412             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53054             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53194             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:52952             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53120             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53052             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53192             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53222             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53164             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:52912             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:52942             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53090             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53300             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53372             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53198             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53224             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53330             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53386             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:52950             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53292             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53268             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53088             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:52984             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53190             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53332             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53122             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53130             127.0.0.1:1883              TIME_WAIT   \r\ntcp        0      0 127.0.0.1:53026             127.0.0.1:1883              TIME_WAIT   \r\n\r\n\r\n.......100+  TIME_WAIT connetions\r\n\r\nbefore disabling \"net.ipv4.tcp_tw_recycle\"  ,the CPU usage quite low and  excellent performance"},"comment":{"url":"https://api.github.com/repos/emqtt/emqttd/issues/comments/385170064","html_url":"https://github.com/emqtt/emqttd/issues/1566#issuecomment-385170064","issue_url":"https://api.github.com/repos/emqtt/emqttd/issues/1566","id":385170064,"user":{"login":"bhzhu203","id":3523160,"avatar_url":"https://avatars2.githubusercontent.com/u/3523160?v=4","gravatar_id":"","url":"https://api.github.com/users/bhzhu203","html_url":"https://github.com/bhzhu203","followers_url":"https://api.github.com/users/bhzhu203/followers","following_url":"https://api.github.com/users/bhzhu203/following{/other_user}","gists_url":"https://api.github.com/users/bhzhu203/gists{/gist_id}","starred_url":"https://api.github.com/users/bhzhu203/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bhzhu203/subscriptions","organizations_url":"https://api.github.com/users/bhzhu203/orgs","repos_url":"https://api.github.com/users/bhzhu203/repos","events_url":"https://api.github.com/users/bhzhu203/events{/privacy}","received_events_url":"https://api.github.com/users/bhzhu203/received_events","type":"User","site_admin":false},"created_at":"2018-04-28T12:04:39Z","updated_at":"2018-04-28T12:04:39Z","author_association":"NONE","body":"![_2018-04-28t12-01-26 892z](https://user-images.githubusercontent.com/3523160/39396339-06cccd24-4b1f-11e8-82a7-979bfdb5624f.png)\r\n\r\n\r\nThis project is a realtime comunication game program between teachers and students in international network."}}
{"actor":{"display_login":"bhzhu203"}}