On Thu, Aug 9, 2012 at 8:44 AM, darcy <[email protected]> wrote:
> if start program by "node --trace_gc mynode.js",, and use cluster module to
> start worker process, the options is not passed to the worker.
>
> I learned the api docs, but no api for this popurse.
Try this:
var argv = process.execArgv.concat(['--trace_gc']);
child_process.fork(filename, {execArgv:argv});
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en