-
Notifications
You must be signed in to change notification settings - Fork 160
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
passing v8 options to workers #139
Comments
hmm they should be passing fine: this.proc = spawn(
node
, this.master.cmd
, { customFds: customFds, env: env }); where for example this.master.cmd in my case was passing along the args just fine |
The issues is : node [options] script.js [app-options] The spawn parameter this.master.cmd should have the node/v8-options as the first entry rather than second in the list. Only then it will work. Here is an example of the process list from my machine : 501 10261 10257 4006 0 33 0 4741568 1391092 - R+ f967540 ttys000 27:49.01 node --max-old-space-size=1900 cluster.js --port=7100 --workers=4 --noref as you can see the cluster has the option, but the worker don't have at all. |
ah ok I see now |
doesn't seem like node exposes those args, not that I can see at least |
Node FAQ mentions about this and also i checked the behavior with a single node process and it works. |
Hi,
How do i pass the v8 options to the cluster workers. I need to pass --max-old-space-size=1900 to all my workers, but somehow looks like the option is not passed and the node process dies when it eventually reaches the max mem of 1gb.
Thanks.
The text was updated successfully, but these errors were encountered: