Re: [nodejs] Noe.js cluster master at 100% CPU

185 views
Skip to first unread message

Ben Noordhuis

unread,
Sep 18, 2012, 7:37:14 AM9/18/12
to nod...@googlegroups.com
On Tue, Sep 18, 2012 at 1:27 PM, Michael <michael...@cinovo.de> wrote:
> hi,
>
> I am playing a bit with JMeter to produce some load on my Node.js system
> (HTTP requests). I recognized, that under heavy load my master node process
> in the cluster is using 100% CPU and will never stop doing so even if no
> requests are arriving.I attached a screenshot... This was the situation some
> minutes after the load. The whole system was relaxed again expect the master
> in the cluster.
>
> My cluster is build like the example here
> http://nodejs.org/api/cluster.html#cluster_cluster So there is nothing than
> master.fork() in master's code.
>
> Any ideas what makes the master process busy? The application still respond
> very fast in the 100% CPU master situation.
>
> Regards,
>
> Michael

Trace the program with strace on Linux or truss / dtruss if you're on
a BSD or Solaris system, that should give you a hint what the process
is doing. In case of doubt, post the trace output.

Another option is to turn on profiling with --prof and inspect the
call graph. `npm install profiler` will give you a nprof tool that
parses the v8.log into human-readable form.

Fedor Indutny

unread,
Sep 18, 2012, 7:53:22 AM9/18/12
to nod...@googlegroups.com
And btw, what node.js version are you using?



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

Michael

unread,
Sep 19, 2012, 11:01:02 AM9/19/12
to nod...@googlegroups.com, fe...@indutny.com
0.8.9 on linux build from source.

Fedor Indutny

unread,
Sep 28, 2012, 11:22:03 AM9/28/12
to Michael, nod...@googlegroups.com
And what about trace?

Cheers,
Fedor.
Reply all
Reply to author
Forward
0 new messages