On Tue, Aug 13, 2013 at 5:04 PM, Jens Himmelreich
<[email protected]> wrote:
>
> Am Montag, 12. August 2013 19:03:27 UTC+2 schrieb Ben Noordhuis:
>>
>> On Mon, Aug 12, 2013 at 6:05 PM, Jens Himmelreich
>> <[email protected]> wrote:
>> > Hi,
>> >
>> > I have a node-server between an nginx-webserver (static content) and an
>> > varnish.
>> > Behind the varnish are two application-server for search and
>> > cart-hosting.
>> > The
>> > node-machine has 4 cores. Every machine has load 0.1 except the
>> > node-machine.
>> > It has a load of 4.0. The node-application is an express-application
>> > running
>> > in
>> > a node-cluster with 4 workers. http.globalAgent.maxSockets is set to
>> > 400.
>> > Does anyone know why the load is high?
>>
>> Because it's doing a lot?  Your post is too light on details to really
>> make informed suggestions.  Try profiling your application to see
>> where it's spending its time.
>
>
> I see. I had to do a profiling. It's a little bit complecated, because we
> use
> coffeescript. The --nodejs --prof Parameters won't went to the workers.

--prof works with the cluster module, that's something I fixed a while ago.

If you're running v0.10 or v0.11, node.js writes out <n> v8-%p.log
files, where <n> is the number of workers and %p the worker's PID.

> The global coffee is used, which I could instrument. I tried it without
> the cluster - to get a quick result for --prof - and I see that the load
> is going to 0.02. So it seems to be a problem of the cluster.
>
> (I know, I will do the profiling.) Are there experiences with a cluster-
> load which rise to 1 per cpu?

Usually when people see spikes like that with the cluster module, it's
because they're sending huge messages between processes.

`process.send(msg)` serializes `msg` to JSON, then deserializes it
again on the other end.  If msg is a big array or object, that
consumes lots of memory and CPU time.

> best regards
> jens

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

--- 
You received this message because you are subscribed to the Google Groups 
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to