Re: Does each ip request to a ruby on rails application on a server spawn a new ruby process?

Tamara Temple
Thu, 11 Jul 2013 00:43:45 -0000

On Jul 10, 2013, at 9:35 AM, John Merlino
<stoicism1-YDxpq3io04c@public.gmane.org> wrote:

> When I view the output of the top command on ubuntu, I notice sometimes
there is 6 ruby processes. When are each of these processes spawned?
>
> http://tinypic.com/view.php?pic=2i24rwh&s=5
>
> I cannot imagine that it''s every time someone loads the rails
application from a different ip address, otherwise I would assume there would be
more ruby processes spawned.

In whatever is managing your Rails app, there''s probably a setting for
number of workers. These can be dynamic, or not, depending. Multiple workers
running your Rails app is pretty standard, actually, to respond to multiple
requests. This is something you see all the time with apache, nginx, lighty,
fastcgi and other things as well.

--
You received this message because you are subscribed to the Google Groups
"Ruby on Rails: Talk" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to
rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To post to this group, send email to
rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org
To view this discussion on the web visit
https://groups.google.com/d/msgid/rubyonrails-talk/0D2CCE32-A886-4609-86DB-70C2555DC662%40gmail.com.
For more options, visit https://groups.google.com/groups/opt_out.