Two ruby processes are running for one Rails app

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

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.

Frederick Cheung wrote in post #1122155:

Short version: assuming you are using passenger, that’s just how it works. Long version http://www.modrails.com/documentation/Architectural%20overview.html

Fred