-
-
Notifications
You must be signed in to change notification settings - Fork 33.9k
Closed
Labels
v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.
Description
Hi.
Next code give me memory leaks.
var vm = require("vm");
var result;
var pool = {test:42};
setInterval(function () {
context = vm.createContext(pool);
result = vm.runInContext("test=56;", pool);
console.log(pool);
console.log(parseInt(process.memoryUsage().heapTotal / 1024 / 1024));
}, 2);Does anybody have idea how to resolve this problem?
Thanks.
Metadata
Metadata
Assignees
Labels
v8 engineIssues and PRs related to the V8 dependency.Issues and PRs related to the V8 dependency.vmIssues and PRs related to the vm subsystem.Issues and PRs related to the vm subsystem.