Hi, I''m using ruby 1.8.7 with rails app(2.3.11) and deployed the app with apache server. My app performance is too slow so i configured the app with new relic and could see the ruby has 2 instances. One is for ruby(nobody) =201 MB and one more for ruby(root)= 73.9 MB. I killed the processes but still can see the same. Please help me and say why 2 instances are running for ruby?. -- Posted via http://www.ruby-forum.com/. -- 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/e0b05046e4c0a28b96b593bd886e1d45%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
Frederick Cheung
2013-Sep-23 12:55 UTC
Re: Two ruby processes are running for one Rails app
On Monday, September 23, 2013 1:12:00 PM UTC+1, Ruby-Forum.com User wrote:> > Hi, > > I''m using ruby 1.8.7 with rails app(2.3.11) and deployed the app with > apache server. My app performance is too slow so i configured the app > with new relic and could see the ruby has 2 instances. One is for > ruby(nobody) =201 MB and one more for ruby(root)= 73.9 MB. I killed the > processes but still can see the same. Please help me and say why 2 > instances are running for ruby?. > > It depends how you are running your app, but passenger for example has aseparate spawner process responsible for starting new application instances. Fred PS: your app is using a version of rails which most likely allows remote code execution.> -- > Posted via http://www.ruby-forum.com/. >-- 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/8f9aea50-e1a8-41cb-8782-7d45a32463db%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.
Frederick Cheung wrote in post #1122155:> On Monday, September 23, 2013 1:12:00 PM UTC+1, Ruby-Forum.com User > wrote: >> It depends how you are running your app, but passenger for example has a > separate spawner process responsible for starting new application > instances. > > Fred > > PS: your app is using a version of rails which most likely allows remote > code execution.Please tell me in detail. I couldn''t understand your point. -- Posted via http://www.ruby-forum.com/. -- 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/7398d95cce868d5b7deee5e02ddf3ff5%40ruby-forum.com. For more options, visit https://groups.google.com/groups/opt_out.
Frederick Cheung
2013-Sep-23 15:26 UTC
Re: Two ruby processes are running for one Rails app
On Monday, September 23, 2013 2:00:36 PM UTC+1, Ruby-Forum.com User wrote:> > Frederick Cheung wrote in post #1122155: > > On Monday, September 23, 2013 1:12:00 PM UTC+1, Ruby-Forum.com User > > wrote: > >> It depends how you are running your app, but passenger for example has > a > > separate spawner process responsible for starting new application > > instances. > > > > Fred > > > > PS: your app is using a version of rails which most likely allows remote > > code execution. > > > Please tell me in detail. I couldn''t understand your point. >Short version: assuming you are using passenger, that''s just how it works. Long version http://www.modrails.com/documentation/Architectural%20overview.html Fred -- 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/d432ee44-7724-43e8-9f3e-836dc23b67e4%40googlegroups.com. For more options, visit https://groups.google.com/groups/opt_out.