{"action":"created","issue":{"url":"https://api.github.com/repos/websockets/ws/issues/816","repository_url":"https://api.github.com/repos/websockets/ws","labels_url":"https://api.github.com/repos/websockets/ws/issues/816/labels{/name}","comments_url":"https://api.github.com/repos/websockets/ws/issues/816/comments","events_url":"https://api.github.com/repos/websockets/ws/issues/816/events","html_url":"https://github.com/websockets/ws/issues/816","id":174788776,"number":816,"title":"Slow CPU rise, seems to point to zlib","user":{"login":"EddieOne","id":1835156,"avatar_url":"https://avatars.githubusercontent.com/u/1835156?v=3","gravatar_id":"","url":"https://api.github.com/users/EddieOne","html_url":"https://github.com/EddieOne","followers_url":"https://api.github.com/users/EddieOne/followers","following_url":"https://api.github.com/users/EddieOne/following{/other_user}","gists_url":"https://api.github.com/users/EddieOne/gists{/gist_id}","starred_url":"https://api.github.com/users/EddieOne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EddieOne/subscriptions","organizations_url":"https://api.github.com/users/EddieOne/orgs","repos_url":"https://api.github.com/users/EddieOne/repos","events_url":"https://api.github.com/users/EddieOne/events{/privacy}","received_events_url":"https://api.github.com/users/EddieOne/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2016-09-02T15:39:16Z","updated_at":"2016-11-02T03:59:48Z","closed_at":"2016-11-02T03:59:48Z","body":"I've seen this a few times where CPU usage rises over a period of a day. However, usage is mostly constant. This happened on ws 0.8.0 on Linux and with node v 4.5.0.\n\n![cpu-rise](https://cloud.githubusercontent.com/assets/1835156/18209667/04e30c70-70f2-11e6-8bf0-5b35e133eed6.png)\n\n16310.7 ms78.45 %   16860.7 ms81.10 %   .../node_modules/ws/lib/Receiver.js:331\n16306.8 ms78.44 %   16856.8 ms81.08 %   .../node_modules/ws/lib/Receiver.js:340\n16306.8 ms78.44 %   16856.8 ms81.08 %   .../node_modules/ws/lib/Receiver.js:466\n16306.8 ms78.44 %   16856.8 ms81.08 %   .../node_modules/ws/lib/Receiver.js:355\n16306.8 ms78.44 %   16856.8 ms81.08 %   .../node_modules/ws/lib/PerMessageDeflate.js:236\n16306.8 ms78.44 %   16856.8 ms81.08 %   afterWrite_stream_writable.js:350\n16306.8 ms78.44 %   16856.8 ms81.08 %   onwrite_stream_writable.js:322\n16306.8 ms78.44 %   16856.8 ms81.08 %   WritableState.onwrite_stream_writable.js:88\n16306.8 ms78.44 %   16856.8 ms81.08 %   afterTransform_stream_transform.js:64\n16306.8 ms78.44 %   16856.8 ms81.08 %   TransformState.afterTransform_stream_transform.js:53\n16306.8 ms78.44 %   16856.8 ms81.08 %   callbackzlib.js:562\n"},"comment":{"url":"https://api.github.com/repos/websockets/ws/issues/comments/257766207","html_url":"https://github.com/websockets/ws/issues/816#issuecomment-257766207","issue_url":"https://api.github.com/repos/websockets/ws/issues/816","id":257766207,"user":{"login":"EddieOne","id":1835156,"avatar_url":"https://avatars.githubusercontent.com/u/1835156?v=3","gravatar_id":"","url":"https://api.github.com/users/EddieOne","html_url":"https://github.com/EddieOne","followers_url":"https://api.github.com/users/EddieOne/followers","following_url":"https://api.github.com/users/EddieOne/following{/other_user}","gists_url":"https://api.github.com/users/EddieOne/gists{/gist_id}","starred_url":"https://api.github.com/users/EddieOne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/EddieOne/subscriptions","organizations_url":"https://api.github.com/users/EddieOne/orgs","repos_url":"https://api.github.com/users/EddieOne/repos","events_url":"https://api.github.com/users/EddieOne/events{/privacy}","received_events_url":"https://api.github.com/users/EddieOne/received_events","type":"User","site_admin":false},"created_at":"2016-11-02T03:59:48Z","updated_at":"2016-11-02T03:59:48Z","body":"I haven't seen this happen recently, I believe it was from a file descriptor leak. The solution was to add a birthTime property to each socket and call ws.close(); on any sockets uncleanly disconnected."}}
{"actor":{"display_login":"EddieOne"}}