[Mongrel] Multiple Processes Spawned from mongrel_rails start ?

Zed A. Shaw zedshaw at zedshaw.com
Fri Feb 16 04:03:15 EST 2007


On Thu, 15 Feb 2007 04:24:51 -0800
<mongrel_users at homerlex.mailshell.com> wrote:

> Hello,
> 
> I have mongrel 1.0.1, rails 1.2.2 ruby 1.8.5 running on Centos 4.4.
> 
> When I execute the mongrel_rails start -d I see that 3 processes are spawned.  See below:
> 
> [root at ccc aaa]# mongrel_rails start -d
> [root at ccc aaa]# ps -def |grep mong
> root      2743     1  9 07:14 ?        00:00:01 /usr/bin/ruby /usr/bin/mongrel_rails start -d
> root      2744  2743  0 07:14 ?        00:00:00 /usr/bin/ruby /usr/bin/mongrel_rails start -d
> root      2745  2744  0 07:14 ?        00:00:00 /usr/bin/ruby /usr/bin/mongrel_rails start -d

Yep, some operating systems seem to list one process as many and I'm
not sure why.  Here's the ps from my archlinux setup:

zedshaw at gigantor ~/p/testapp> mongrel_rails start -d
zedshaw at gigantor ~/p/testapp> ps ax | grep mongrel_rails
19605 ?        Sl     0:01 /usr/bin/ruby /usr/bin/mongrel_rails start -d
19641 pts/0    S+     0:00 grep mongrel_rails
zedshaw at gigantor ~/p/testapp> 

So, it's just how the ps or process stuff works on that particular
flavor.

-- 
Zed A. Shaw, MUDCRAP-CE Master Black Belt Sifu
http://www.zedshaw.com/
http://www.awprofessional.com/title/0321483502 -- The Mongrel Book
http://mongrel.rubyforge.org/
http://www.lingr.com/room/3yXhqKbfPy8 -- Come get help.


More information about the Mongrel-users mailing list