-
-
Notifications
You must be signed in to change notification settings - Fork 33.7k
Closed
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.memoryIssues and PRs related to the memory management or memory footprint.Issues and PRs related to the memory management or memory footprint.vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.
Description
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.
Metadata
Metadata
Assignees
Labels
duplicateIssues and PRs that are duplicates of other issues or PRs.Issues and PRs that are duplicates of other issues or PRs.memoryIssues and PRs related to the memory management or memory footprint.Issues and PRs related to the memory management or memory footprint.vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.