Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm running Ubuntu 10.10 with Apache2, RVM (For Ruby) and Passenger (mod_rails).

When I look at the "top" application, I always notice the same Ruby process consuming about 1/4 of the memory on my server.

I'm just wondering if this is normal for my current setup. I'm not sure if it has to do with Passenger or RVM or if a Ruby process is just stuck. I'd appreciate any clarification this this.

share|improve this question
add comment

1 Answer

up vote 1 down vote accepted

If mod_rails works like any other scripted language module (mod_python for example) this ruby process is kept alive to provide an interpreter to it, instead of spawning an interpreter per request (slow and costly) so saving resources and making things way faster.

EDIT: I did Passenger's documentation a read and this is a good explanation on your running ruby process. There is a link on that documentation to the advanced explanation that is very good too.

share|improve this answer
    
Thanks coredump. –  Dan Apr 16 '11 at 21:01
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.