mongrel_users at homerlex.mailshell.com
2007-Feb-15 12:24 UTC
[Mongrel] Multiple Processes Spawned from mongrel_rails start ?
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 Is this normal? When I had mongrel 0.3.13.3, rails 1.1.0, ruby 1.8.4 on rhel 4 only 1 process would be spawned. I realize I changed versions of EVERYTHING so I''m wondering if this is now the normal behavior or if something is going wrong. Regards _______________________________________________________ The FREE service that prevents junk email http://www.mailshell.com
Philip Hallstrom
2007-Feb-15 17:24 UTC
[Mongrel] Multiple Processes Spawned from mongrel_rails start ?
> 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 > > Is this normal? > > When I had mongrel 0.3.13.3, rails 1.1.0, ruby 1.8.4 on rhel 4 only 1 process would be spawned. > > I realize I changed versions of EVERYTHING so I''m wondering if this is > now the normal behavior or if something is going wrong. >Search the list for this issue... I don''t remember the particulars other than some OS''s report three instances via ps even though there really is only one running... -philip
Zed A. Shaw
2007-Feb-16 09:03 UTC
[Mongrel] Multiple Processes Spawned from mongrel_rails start ?
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 -dYep, 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.