-
Notifications
You must be signed in to change notification settings - Fork 30.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
External memory leak on node v8.x #21021
Labels
v8 engine
Issues and PRs related to the V8 dependency.
Comments
@nodejs/v8 |
The fix came to v9.x in the form of an upgrade to V8 6.1 on #14730. It needs to be individually back-ported for 8.x. Self-assigning to do this / investigate feasibility once I have some bandwidth, but if anyone else has cycles sooner, please go ahead and re-assign. |
ofrobots
added a commit
to ofrobots/node
that referenced
this issue
Jun 11, 2018
Original commit message: [heap] Activate memory reducer on external memory activity. BUG=chromium:728228,chromium:626082 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_rel_ng Review-Url: https://codereview.chromium.org/2917853004 Cr-Commit-Position: refs/heads/master@{nodejs#45671} Refs: nodejs#21021
ofrobots
added a commit
to ofrobots/node
that referenced
this issue
Jun 11, 2018
Original commit message: [heap] Lower external allocation limit when external memory shrinks. BUG=chromium:728228 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_rel_ng Review-Url: https://codereview.chromium.org/2921883002 Cr-Commit-Position: refs/heads/master@{nodejs#45726} Fixes: nodejs#21021
2 tasks
Backport on #21269. |
MylesBorins
pushed a commit
that referenced
this issue
Jun 14, 2018
Original commit message: [heap] Activate memory reducer on external memory activity. BUG=chromium:728228,chromium:626082 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_rel_ng Review-Url: https://codereview.chromium.org/2917853004 Cr-Commit-Position: refs/heads/master@{#45671} PR-URL: #21269 Fixes: #21021 Reviewed-By: Myles Borins <[email protected]>
MylesBorins
pushed a commit
that referenced
this issue
Jun 14, 2018
Original commit message: [heap] Lower external allocation limit when external memory shrinks. BUG=chromium:728228 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_rel_ng Review-Url: https://codereview.chromium.org/2921883002 Cr-Commit-Position: refs/heads/master@{#45726} PR-URL: #21269 Fixes: #21021 Reviewed-By: Myles Borins <[email protected]>
rvagg
pushed a commit
that referenced
this issue
Aug 16, 2018
Original commit message: [heap] Activate memory reducer on external memory activity. BUG=chromium:728228,chromium:626082 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_rel_ng Review-Url: https://codereview.chromium.org/2917853004 Cr-Commit-Position: refs/heads/master@{#45671} PR-URL: #21269 Fixes: #21021 Reviewed-By: Myles Borins <[email protected]>
rvagg
pushed a commit
that referenced
this issue
Aug 16, 2018
Original commit message: [heap] Lower external allocation limit when external memory shrinks. BUG=chromium:728228 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_chromium_rel_ng Review-Url: https://codereview.chromium.org/2921883002 Cr-Commit-Position: refs/heads/master@{#45726} PR-URL: #21269 Fixes: #21021 Reviewed-By: Myles Borins <[email protected]>
The fix has been merged on 8.x and will be released as part of 8.12.0. Closing. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
The code below will cause external memory leak of v8 engine. In v8, mark-compact updates the
external_memory
before the gc, which cause theexternal_memory_limit
too big. Normally, It's fine, we just got a bigger limit. But when scavenge happened before next mc, updated theexternal_memory
, theexternal_memory_limit
will keep increasing.I thought this issue has already been fixed in these commits, and node v9.x already ported them:
https://codereview.chromium.org/2917853004
https://codereview.chromium.org/2921883002
Run the script with
--trace-gc
to dump gc info.Attached a graph of the memory usage
The text was updated successfully, but these errors were encountered: