FAQ
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.

--
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 nodejs@googlegroups.com
To unsubscribe from this group, send email to
nodejs+unsubscribe@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en

Search Discussions

  • Ben Noordhuis at Aug 9, 2012 at 2:59 pm

    On Thu, Aug 9, 2012 at 8:44 AM, darcy 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 nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en
  • Darcy at Aug 10, 2012 at 6:13 am
    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 <free...@gmail.com <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 nodejs@googlegroups.com
    To unsubscribe from this group, send email to
    nodejs+unsubscribe@googlegroups.com
    For more options, visit this group at
    http://groups.google.com/group/nodejs?hl=en?hl=en

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupnodejs @
categoriesnodejs
postedAug 9, '12 at 6:44a
activeAug 10, '12 at 6:13a
posts3
users2
websitenodejs.org
irc#node.js

2 users in discussion

Darcy: 2 posts Ben Noordhuis: 1 post

People

Translate

site design / logo © 2022 Grokbase