Message from discussion
how to set worker v8 options in cluster module?
Received: by 10.236.185.226 with SMTP id u62mr12243496yhm.3.1344524417316;
Thu, 09 Aug 2012 08:00:17 -0700 (PDT)
X-BeenThere: nodejs@googlegroups.com
Received: by 10.236.126.33 with SMTP id a21ls5315470yhi.3.gmail; Thu, 09 Aug
2012 07:59:55 -0700 (PDT)
Received: by 10.236.91.229 with SMTP id h65mr12117509yhf.24.1344524395457;
Thu, 09 Aug 2012 07:59:55 -0700 (PDT)
Received: by 10.236.91.229 with SMTP id h65mr12117508yhf.24.1344524395448;
Thu, 09 Aug 2012 07:59:55 -0700 (PDT)
Return-Path: <i...@bnoordhuis.nl>
Received: from mail-gg0-f179.google.com (mail-gg0-f179.google.com [209.85.161.179])
by gmr-mx.google.com with ESMTPS id n2si119948anp.3.2012.08.09.07.59.55
(version=TLSv1/SSLv3 cipher=OTHER);
Thu, 09 Aug 2012 07:59:55 -0700 (PDT)
Received-SPF: pass (google.com: domain of i...@bnoordhuis.nl designates 209.85.161.179 as permitted sender) client-ip=209.85.161.179;
Authentication-Results: gmr-mx.google.com; spf=pass (google.com: domain of i...@bnoordhuis.nl designates 209.85.161.179 as permitted sender) smtp.mail=i...@bnoordhuis.nl
Received: by mail-gg0-f179.google.com with SMTP id i2so484080ggn.38
for <nodejs@googlegroups.com>; Thu, 09 Aug 2012 07:59:55 -0700 (PDT)
d=google.com; s=20120113;
h=mime-version:x-originating-ip:in-reply-to:references:date
:message-id:subject:from:to:content-type:x-gm-message-state;
bh=ZA3+67pI5CwJGqeDWmaPflF55q5B9CwNUyTR77yEf+c=;
b=LonWI7yzDniEeCvrKbevyp4RZnkeL8yF9gm56ilUqgfitcv3YqXIlmdkm8lE5EsKpe
eVgnCKzm0TkiGoVBCZTOxBdRGa5tdQ30jG0ufS0jjgC9vw24+7nci6E8Ekj+LmQR7Du1
InL4ste5U+MyY+zZImsx1F/mzK+ONZAMzawet9vrAfkHUQY21AAJD9AMpwf7j1new+6l
jpEvtprahfZJeVL2um0KGK6NjWDvhWo7woZiO+ehaNnwcNHIpJolPKIUzrCVMekYAT4M
vhAUBIm8aXgXA4AhEV4xX0HN/MwTC5zXKxUdE8wu07FmDGMuzOT8vbp9CI8u6PVDKZKj
tDtw==
MIME-Version: 1.0
Received: by 10.66.89.234 with SMTP id br10mr8359986pab.25.1344524395050; Thu,
09 Aug 2012 07:59:55 -0700 (PDT)
Received: by 10.68.46.106 with HTTP; Thu, 9 Aug 2012 07:59:54 -0700 (PDT)
X-Originating-IP: [87.214.96.125]
In-Reply-To: <006b4d7f-bf9c-420b-ae7a-46efe4616667@googlegroups.com>
References: <006b4d7f-bf9c-420b-ae7a-46efe4616667@googlegroups.com>
Date: Thu, 9 Aug 2012 16:59:54 +0200
Message-ID: <CAHQurc9o+c=kCTLLtijWX21dM7Zgnq67mhc=zO2EqGZB0yi...@mail.gmail.com>
Subject: Re: [nodejs] how to set worker v8 options in cluster module?
From: Ben Noordhuis <i...@bnoordhuis.nl>
To: nodejs@googlegroups.com
Content-Type: text/plain; charset=ISO-8859-1
X-Gm-Message-State: ALoCoQn3TvnvrgZnf7MLl24+2UavyYcjXkszdn9c4/BLIeAO1Tys5HsHqEexWn2J15hqdi06sv/O
On Thu, Aug 9, 2012 at 8:44 AM, darcy <freeda...@gmail.com> 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});