{"action":"created","issue":{"url":"https://api.github.com/repos/nodejs/node/issues/19090","repository_url":"https://api.github.com/repos/nodejs/node","labels_url":"https://api.github.com/repos/nodejs/node/issues/19090/labels{/name}","comments_url":"https://api.github.com/repos/nodejs/node/issues/19090/comments","events_url":"https://api.github.com/repos/nodejs/node/issues/19090/events","html_url":"https://github.com/nodejs/node/issues/19090","id":301837905,"number":19090,"title":"Node old space memory leak","user":{"login":"DOhlsson","id":2997226,"avatar_url":"https://avatars0.githubusercontent.com/u/2997226?v=4","gravatar_id":"","url":"https://api.github.com/users/DOhlsson","html_url":"https://github.com/DOhlsson","followers_url":"https://api.github.com/users/DOhlsson/followers","following_url":"https://api.github.com/users/DOhlsson/following{/other_user}","gists_url":"https://api.github.com/users/DOhlsson/gists{/gist_id}","starred_url":"https://api.github.com/users/DOhlsson/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/DOhlsson/subscriptions","organizations_url":"https://api.github.com/users/DOhlsson/orgs","repos_url":"https://api.github.com/users/DOhlsson/repos","events_url":"https://api.github.com/users/DOhlsson/events{/privacy}","received_events_url":"https://api.github.com/users/DOhlsson/received_events","type":"User","site_admin":false},"labels":[{"id":176191361,"url":"https://api.github.com/repos/nodejs/node/labels/V8%20Engine","name":"V8 Engine","color":"0052cc","default":false},{"id":249163259,"url":"https://api.github.com/repos/nodejs/node/labels/memory","name":"memory","color":"eb6420","default":false},{"id":151728679,"url":"https://api.github.com/repos/nodejs/node/labels/question","name":"question","color":"cc317c","default":true}],"state":"closed","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-03-02T17:07:35Z","updated_at":"2018-03-02T17:39:39Z","closed_at":"2018-03-02T17:38:24Z","author_association":"NONE","body":"<!--\r\nThank you for reporting an issue.\r\n\r\nThis issue tracker is for bugs and issues found within Node.js core.\r\nIf you require more general support please file an issue on our help\r\nrepo. https://github.com/nodejs/help\r\n\r\n\r\nPlease fill in as much of the template below as you're able.\r\n\r\nVersion: output of `node -v`\r\nPlatform: output of `uname -a` (UNIX), or version and 32 or 64-bit (Windows)\r\nSubsystem: if known, please specify affected core module name\r\n\r\nIf possible, please provide code that demonstrates the problem, keeping it as\r\nsimple and free of external dependencies as you are able.\r\n-->\r\n\r\n* **Version**: v8.7.0\r\n* **Platform**: Linux 3.16.0-4 64-bit\r\n* **Subsystem**:\r\n\r\nHello,\r\n\r\nI have encountered memory issues with node applications running in a production environment. There seems to be some kind of memory leak related to node and v8 garbage collection.\r\n\r\nI have collected memory statistics from Linux proc-fs /proc/x/status VmRSS property and from node with process.memoryUsage() and v8.getHeapSpaceStatistics(). When plotting these metrics I see some very strange behaviour.\r\n\r\n![2018-03-02-155522_1832x889_scrot](https://user-images.githubusercontent.com/2997226/36910764-e892749e-1e41-11e8-9407-dd1b4cd11ea3.png)\r\n![2018-03-02-161056_1835x893_scrot](https://user-images.githubusercontent.com/2997226/36911050-b257ed04-1e42-11e8-9c9c-2a576a3bb616.png)\r\n\r\nThe sawtooth looking memory usage appears on several different node programs running independently on the same server and when the peaks line up it causes OOM issues.\r\n\r\nWhy is it that old_space_size is growing but old_space usage is not? And why does the total memory footprint increase while old space size does not increase?\r\n\r\nThe node process in the graph is a simple mqtt broker using mosca och mongoose for mongodb access. The amount of messages received in the module does not account for the large increase in memory usage. When the module is restarted it does not start spiking instantly, it will usually take a couple hours until it starts behaving strangely.\r\n\r\nSincerely\r\nDaniel\r\n\r\n<!-- Enter your issue details below this comment. -->\r\n"},"comment":{"url":"https://api.github.com/repos/nodejs/node/issues/comments/369994875","html_url":"https://github.com/nodejs/node/issues/19090#issuecomment-369994875","issue_url":"https://api.github.com/repos/nodejs/node/issues/19090","id":369994875,"user":{"login":"ofrobots","id":79017,"avatar_url":"https://avatars1.githubusercontent.com/u/79017?v=4","gravatar_id":"","url":"https://api.github.com/users/ofrobots","html_url":"https://github.com/ofrobots","followers_url":"https://api.github.com/users/ofrobots/followers","following_url":"https://api.github.com/users/ofrobots/following{/other_user}","gists_url":"https://api.github.com/users/ofrobots/gists{/gist_id}","starred_url":"https://api.github.com/users/ofrobots/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ofrobots/subscriptions","organizations_url":"https://api.github.com/users/ofrobots/orgs","repos_url":"https://api.github.com/users/ofrobots/repos","events_url":"https://api.github.com/users/ofrobots/events{/privacy}","received_events_url":"https://api.github.com/users/ofrobots/received_events","type":"User","site_admin":false},"created_at":"2018-03-02T17:39:39Z","updated_at":"2018-03-02T17:39:39Z","author_association":"CONTRIBUTOR","body":"If you still see leaks after upgrade, please do reply here, and I'll reopen the issue."}}
{"actor":{"display_login":"ofrobots"}}