We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
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.
The text was updated successfully, but these errors were encountered:
You posted a related question on v8-users, didn't you? https://groups.google.com/forum/#!topic/v8-users/vnZdcFxFcMY
FWIW, your example works for me. If you run it with --max_old_space_size=24, heap size flattens out at 17 MB and RSS is stable.
--max_old_space_size=24
I'll close the issue because I don't see a bug but let me know if you have evidence to the contrary.
By the way, your example has a minor bug. This line:
result = vm.runInContext("test=56;", pool);
Should read:
result = vm.runInContext("test=56;", context);
Sorry, something went wrong.
No branches or pull requests
Hi.
Next code give me memory leaks.
Does anybody have idea how to resolve this problem?
Thanks.
The text was updated successfully, but these errors were encountered: