I'm assuming this is related to the other process.title changes [1], but I 
thought I should mention this in case others run into it, or it's a fixable 
"bug".  Either way it's probably worth putting in the upgrade notes, as 
it's the kind of thing that didn't bite us except in an actual production 
environment.

We recently upgraded from node 0.6.21 to 0.10.6 on our Linux servers, and a 
number of our management tools stopped working, and I've traced it down to 
this:

In the new version of node, setting process.title seems to also change what 
the system thinks was the process name/command as well as the "title" or 
command line.  As a result, commands like "killall node" or "ps -fC node" 
no longer work for any node processes that have changed their "title" (in 
our case, killall just ended up killing a seemingly random subset of node 
processes).

Not knowing any of the specifics, but poking in /proc/*/stat/, it seems on 
old node, only the "cmdline" was changed, but the "status" still lists the 
process name as simply "node".  In the new version, both the "cmdline" and 
process name get changed, causing any system utilities that operation on 
process names to fail.

We've fixed this for killall by now making sure all of our process titles 
start with a particular prefix, and doing "killall -r \(node\|prefix\)" 
instead, though we don't have any good solution for ps or similar 
utilities, but we don't use that for anything critical so it's fine for now 
(though, in the past, it was very handy do be able to do "ps -fC node" and 
see stats for all node processes with their firendly titles).

  Jimb Esser
  Cloud Party, Inc.

[1] https://github.com/joyent/libuv/commit/a0c1d84

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