John Merlino
2013-Jul-10 16:35 UTC
Does each ip request to a ruby on rails application on a server spawn a new ruby process?
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. -- 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/594957ab-4038-43c2-883d-640f26599541%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Tamara Temple
2013-Jul-11 00:43 UTC
Re: Does each ip request to a ruby on rails application on a server spawn a new ruby process?
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.