node
node copied to clipboard
doc,worker: document resourceLimits overrides
If --max-old-space-size
is passed on the command line, it takes
precedence over resourceLimits.maxOldSpaceSizeMb
passed to the worker
thread. IMO this is a bug, but seems unlikely to change(?), so let's
start by documenting it. See the attached issue for more details.
Refs: https://github.com/nodejs/node/issues/43991
Okay, PTAL. I moved the additions into the sub-bullets, which feels better and removes the ambiguity of if --stack-size
takes effect. If you'd like I can explicitly note that --stack-size
does not affect it, but --stack-size
is already undocumented today.
Landed in 2f24f6e45dd24a263347abc13eaa5cebef4bc161