Title: memory leak in a loop. · Issue #18367 · nodejs/node · GitHub
Open Graph Title: memory leak in a loop. · Issue #18367 · nodejs/node
X Title: memory leak in a loop. · Issue #18367 · nodejs/node
Description: Version:v6.10.0 Platform:linux x86_64 ubuntu 16.04 Subsystem: code: while(true){ console.log(new Buffer("asdfasdfas")) } when run a few minute,program exit with error: <--- Last few GCs ---> 267659 ms: Mark-sweep 1376.8 (1434.7) -> 1376....
Open Graph Description: Version:v6.10.0 Platform:linux x86_64 ubuntu 16.04 Subsystem: code: while(true){ console.log(new Buffer("asdfasdfas")) } when run a few minute,program exit with error: <--- Last few GCs ---> 267659...
X Description: Version:v6.10.0 Platform:linux x86_64 ubuntu 16.04 Subsystem: code: while(true){ console.log(new Buffer("asdfasdfas")) } when run a few minute,program exit with error: <--- Last few GC...
Opengraph URL: https://github.com/nodejs/node/issues/18367
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"memory leak in a loop.","articleBody":"\u003c!--\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--\u003e\r\n\r\n* **Version**:v6.10.0\r\n* **Platform**:linux x86_64 ubuntu 16.04\r\n* **Subsystem**:\r\n\r\n\u003c!-- Enter your issue details below this comment. --\u003e\r\ncode:\r\n\r\nwhile(true){\r\n\tconsole.log(new Buffer(\"asdfasdfas\"))\r\n}\r\n\r\nwhen run a few minute,program exit with error:\r\n\r\n\u003c--- Last few GCs ---\u003e\r\n\r\n 267659 ms: Mark-sweep 1376.8 (1434.7) -\u003e 1376.8 (1434.7) MB, 1661.6 / 0.0 ms [allocation failure] [GC in old space requested].\r\n 269309 ms: Mark-sweep 1376.8 (1434.7) -\u003e 1376.8 (1434.7) MB, 1650.0 / 0.0 ms [allocation failure] [GC in old space requested].\r\n 270967 ms: Mark-sweep 1376.8 (1434.7) -\u003e 1376.7 (1403.7) MB, 1657.7 / 0.0 ms [last resort gc].\r\n 272617 ms: Mark-sweep 1376.7 (1403.7) -\u003e 1376.7 (1403.7) MB, 1649.9 / 0.0 ms [last resort gc].\r\n\r\n\r\n\u003c--- JS stacktrace ---\u003e\r\n\r\n==== JS stack trace =========================================\r\n\r\nSecurity context: 0x3378f3acfb51 \u003cJS Object\u003e\r\n 1: nextTick [internal/process/next_tick.js:~134] [pc=0x36d27cb9206f] (this=0x2152b3c9b239 \u003ca process with map 0x1594f1511671\u003e,callback=0x87e0b825ac9 \u003cJS Function afterWrite (SharedFunctionInfo 0x2152b3c52979)\u003e)\r\n 2: arguments adaptor frame: 5-\u003e1\r\n 3: onwrite(aka onwrite) [_stream_writable.js:~356] [pc=0x36d27cb7c8dd] (this=0x3378f3a04381 \u003cundefined\u003e,stream=0x87e0b8435a1 \u003ca WriteStream w...\r\n\r\nFATAL ERROR: CALL_AND_RETRY_LAST Allocation failed - JavaScript heap out of memory\r\n 1: node::Abort() [node]\r\n 2: 0x10983ec [node]\r\n 3: v8::Utils::ReportApiFailure(char const*, char const*) [node]\r\n 4: v8::internal::V8::FatalProcessOutOfMemory(char const*, bool) [node]\r\n 5: v8::internal::Factory::NewFillerObject(int, bool, v8::internal::AllocationSpace) [node]\r\n 6: v8::internal::Runtime_AllocateInTargetSpace(int, v8::internal::Object**, v8::internal::Isolate*) [node]\r\n 7: 0x36d27ca079a7\r\n","author":{"url":"https://github.com/manyuan","@type":"Person","name":"manyuan"},"datePublished":"2018-01-25T09:21:46.000Z","interactionStatistic":{"@type":"InteractionCounter","interactionType":"https://schema.org/CommentAction","userInteractionCount":1},"url":"https://github.com/18367/node/issues/18367"}
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:5ca50d19-0217-7205-3bb3-260abda3be8f |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 90A0:2003E5:1809727:1FB88A9:6A51CC84 |
| html-safe-nonce | 11b22abbf38914e8dcda33f055c01137dcfc61879441e297f225a39269bd4c2c |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5MEEwOjIwMDNFNToxODA5NzI3OjFGQjg4QTk6NkE1MUNDODQiLCJ2aXNpdG9yX2lkIjoiNjk2NTk2NTM3Mjc4MTYxMjE2NCIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 60ec264522bf621ae4a00943d4bbeeada94b3aaf5c91bcb0cb7c4c0091dd98e8 |
| hovercard-subject-tag | issue:291500735 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/nodejs/node/18367/issue_layout |
| twitter:image | https://opengraph.githubassets.com/195a12dedaf54136c3b64f6b446485645acfe51bc44efbe7c47d2158d5c89089/nodejs/node/issues/18367 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/195a12dedaf54136c3b64f6b446485645acfe51bc44efbe7c47d2158d5c89089/nodejs/node/issues/18367 |
| og:image:alt | Version:v6.10.0 Platform:linux x86_64 ubuntu 16.04 Subsystem: code: while(true){ console.log(new Buffer("asdfasdfas")) } when run a few minute,program exit with error: <--- Last few GCs ---> 267659... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | manyuan |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| turbo-cache-control | no-preview |
| go-import | github.com/nodejs/node git https://github.com/nodejs/node.git |
| octolytics-dimension-user_id | 9950313 |
| octolytics-dimension-user_login | nodejs |
| octolytics-dimension-repository_id | 27193779 |
| octolytics-dimension-repository_nwo | nodejs/node |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 27193779 |
| octolytics-dimension-repository_network_root_nwo | nodejs/node |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 7aed05249554b889eb33d002851a973eebcc7e91 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width