Skip to content
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

child_process: fix memory leak in .fork() #15679

Closed
wants to merge 1 commit into from

Conversation

bnoordhuis
Copy link
Member

@bnoordhuis bnoordhuis commented Sep 29, 2017

Entries in the net.Server#_workers array that is used to track handles
sent from the master to workers were not deleted when a worker exited,
resulting in a slow but inexorable memory leak.

Fixes: #15651
CI: https://ci.nodejs.org/job/node-test-pull-request/10332/

Entries in the `net.Server#_workers` array that is used to track handles
sent from the master to workers were not deleted when a worker exited,
resulting in a slow but inexorable memory leak.

Fixes: nodejs#15651
@nodejs-github-bot nodejs-github-bot added the net Issues and PRs related to the net subsystem. label Sep 29, 2017
jasnell pushed a commit that referenced this pull request Oct 1, 2017
Entries in the `net.Server#_workers` array that is used to track handles
sent from the master to workers were not deleted when a worker exited,
resulting in a slow but inexorable memory leak.

PR-URL: #15679
Fixes: #15651
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
@jasnell
Copy link
Member

jasnell commented Oct 1, 2017

Landed in 2e59ec0

@jasnell jasnell closed this Oct 1, 2017
@MylesBorins
Copy link
Contributor

This doesn't land cleanly in v8.x. Could you please backport? Also feel free to let me know if another PR is blocking this

addaleax pushed a commit to addaleax/ayo that referenced this pull request Oct 4, 2017
Entries in the `net.Server#_workers` array that is used to track handles
sent from the master to workers were not deleted when a worker exited,
resulting in a slow but inexorable memory leak.

PR-URL: nodejs/node#15679
Fixes: nodejs/node#15651
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
bnoordhuis added a commit to bnoordhuis/io.js that referenced this pull request Oct 29, 2017
Entries in the `net.Server#_slaves` array that is used to track handles
sent from the master to workers were not deleted when a worker exited,
resulting in a slow but inexorable memory leak.

PR-URL: nodejs#15679
Fixes: nodejs#15651
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
@bnoordhuis bnoordhuis deleted the fix15651 branch October 29, 2017 11:10
@bnoordhuis
Copy link
Member Author

v8.x: #16586

gibfahn pushed a commit that referenced this pull request Oct 30, 2017
Entries in the `net.Server#_slaves` array that is used to track handles
sent from the master to workers were not deleted when a worker exited,
resulting in a slow but inexorable memory leak.

PR-URL: #15679
Backport-PR-URL: #16586
Fixes: #15651
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
gibfahn pushed a commit that referenced this pull request Oct 31, 2017
Entries in the `net.Server#_slaves` array that is used to track handles
sent from the master to workers were not deleted when a worker exited,
resulting in a slow but inexorable memory leak.

PR-URL: #15679
Backport-PR-URL: #16586
Fixes: #15651
Reviewed-By: James M Snell <[email protected]>
Reviewed-By: Luigi Pinca <[email protected]>
@gibfahn gibfahn mentioned this pull request Oct 31, 2017
@MylesBorins
Copy link
Contributor

Should this be backported to v6.x-staging? If yes please follow the guide and raise a backport PR, if not let me know or add the dont-land-on label.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
net Issues and PRs related to the net subsystem.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants