Two ruby processes are running for one Rails app

14 views
Skip to first unread message

Rosy Catz

unread,
Sep 23, 2013, 8:12:00 AM9/23/13
to rubyonra...@googlegroups.com
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/.

Frederick Cheung

unread,
Sep 23, 2013, 8:55:03 AM9/23/13
to rubyonra...@googlegroups.com


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 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.

Rosy Catz

unread,
Sep 23, 2013, 9:00:36 AM9/23/13
to rubyonra...@googlegroups.com
Frederick Cheung wrote in post #1122155:
Please tell me in detail. I couldn't understand your point.

Frederick Cheung

unread,
Sep 23, 2013, 11:26:43 AM9/23/13
to rubyonra...@googlegroups.com
Short version: assuming you  are using passenger, that's just how it works. Long version http://www.modrails.com/documentation/Architectural%20overview.html

Fred
Reply all
Reply to author
Forward
0 new messages