> > 1. Some processes utilized far more CPU time than others, but I'd expect
> > they should be have similar load. No?
>
> Load balancing is done by the operating system. The nodes in the
> cluster listen on a single socket, it's the OS that decides which node
> gets the connection. I've observed on Linux that if your cluster is
> mostly idle, the first few nodes receive the bulk of the work.
>

Do you mean latest forked process will have much higher priority to be
selected on Linux? Didn't know that before.
This is not quite good for garbage collection.


>
> > This application is built upon express, it proxy HTTP requests, serve a
> lot
> > of small files (sometimes we need to modify the content on-the-fly before
> > send).
> > 2. Some processes have high RSS. I searched around, but can't find a way
> to
> > take a snapshot or detect leaks. Do you have any suggestions?
> > Thank you!
>
> Try node-inspector (provided it compiles. It's kind of hit and miss).
>

Inspector provides nice tools for debugging. But v8-profiler is stated as
very experimental and I may need it to take snapshot and see which objects
are likely leaking. And I don't think it works with hundreds megabytes data
remotely.


>
> On a side note, I would recommend that you upgrade to v0.6.14. There
> have been a lot of bug fixes, including a few memory / resource leaks,
> since v0.6.6.
>

Thanks.
If I upgrade node to higher version and kill one child process not the
cluster, does the new child process forked by cluster use the new node?



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



-- 
>: ~

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