Thanks for your help.
I've found that process.execArgv is supported in v0.8, but not in v0.6, 
which is used by me now.
And in cluster of node v0.8, the worker process is started with the node 
options used in master default.

On Thursday, August 9, 2012 10:59:54 PM UTC+8, Ben Noordhuis wrote:
>
> On Thu, Aug 9, 2012 at 8:44 AM, darcy <[email protected] <javascript:>> 
> 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

Reply via email to