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

Possible memory leak in node v4.2.3 #4347

Closed
jkrems opened this issue Dec 18, 2015 · 2 comments
Closed

Possible memory leak in node v4.2.3 #4347

jkrems opened this issue Dec 18, 2015 · 2 comments
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. memory Issues and PRs related to the memory management or memory footprint. vm Issues and PRs related to the vm subsystem.

Comments

@jkrems
Copy link
Contributor

jkrems commented Dec 18, 2015

There's an interesting possible problem when upgrading from node 0.10 to node 4: It seems like running code via vm.runInNewContext retains the whole context, including all native constructors, globals, etc.. From our current testing it looks like those are never collected even after nothing in our app code holds a reference to any object belonging to the context, leading to the process running out of memory eventually. After we stopped using vm.runInNewContext, the problem went away.

As mentioned above, we have only circumstantial evidence that the leak is in vm.runInNewContext itself.

@ChALkeR
Copy link
Member

ChALkeR commented Dec 18, 2015

Is this a duplicate of #3113?

@ChALkeR ChALkeR added duplicate Issues and PRs that are duplicates of other issues or PRs. vm Issues and PRs related to the vm subsystem. memory Issues and PRs related to the memory management or memory footprint. labels Dec 18, 2015
@jkrems
Copy link
Contributor Author

jkrems commented Dec 18, 2015

Sorry, yes. Didn't find it for some reason. Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
duplicate Issues and PRs that are duplicates of other issues or PRs. memory Issues and PRs related to the memory management or memory footprint. vm Issues and PRs related to the vm subsystem.
Projects
None yet
Development

No branches or pull requests

2 participants