Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 1097725
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T00:28:27+00:00 2026-05-17T00:28:27+00:00

I am working with a Rails 3RC app and using Phusion Passenger for the

  • 0

I am working with a Rails 3RC app and using Phusion Passenger for the first time. It takes about 30 seconds to start up the app on the first request and here is the typical memory consumption for each ruby process in my app:

PID     VMSize     Private   Name
18161 263.5 MB 75.4 MB Rack: /rails_apps/my_app/current

Is that typical memory consumption? My app is about 11MB ( < 4MB if you dont include my /public assets).

It runs fine after the first request if there is one user, but I run into problems when I run some of my custom stress testing scripts, and also when I use my search suggestion feature which makes a bunch of quick ajax calls(which I expected, because the next request comes thru before the first one finishes). Here is what I find odd.. the server starts spawning Ruby threads which take an additional 30 seconds to load, but no other requests can go thru while the spawning is taking place. Just to double check, I tested with browsers on other networks while the processes were spawning just to make sure it was not something specific to my local machine (like all requests being served from one process). These browser requests had to wait until all the new spawns were complete.

So my question is.. is this the typical behaviour of Passenger? Waiting on spawning before any other request can come thru? From looking at the documentation I would think that the other request would be handled by idle ruby processes while the spawning was happening. Here are the versions I am using in case you guys are aware of any incompatabilities. Thanks in advance! I really don’t want to go back to Mongrel 😉

my setup
Quarter slice Rackspace Cloud (4GB RAM & 1/4 of dual quad core)
CentOS 5.4
Rails 3.0RC
ruby 1.9.2dev (2010-05-31 revision 28117) [x86_64-linux]
Passenger 2.2.15 with mongrel

nginx config options:
passenger_max_pool_size 30;
passenger_enabled on; #in / location block..

I tried conservative spawning and I am seeing the same behavior.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T00:28:28+00:00Added an answer on May 17, 2026 at 12:28 am

    Passenger 3 is out with asynchronous spawning. You can even set a minimum number of processes to keep around.

    Even with the old behavior, most high-traffic sites don’t experience this problem because:

    1. Spawning the first process is usually much faster. For me, Rails apps typically take 5 seconds to spawn.
    2. The smart spawning method makes spawning additional processes much faster, typically requiring only 10% of the original time.
    3. People with high-traffic websites typically set their pool idle times to higher values so that processes don’t get shut down during the day and only clean themselves up during the night.

    Your memory usage is a bit high. Most Rails apps I’ve seen require 20-50 MB of private memory.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm working on a Rails app and am looking to include some functionality from
I am working on a rails project. Using the tag observe_field, I am taking
I'm working on a rails app that has a whole bunch of before filters
I'm working on a Rails app that sends data through a form. I want
So I'm working on a Rails app to get the feeling for the whole
I have a working Rails application on version 2.3.5 - I am using many
i am working in rails 2.3 on mac osx leopard. every time i type
I have a working Rails 3 app service plain old HTML CRUD and I
Im working with Rails 3.0.3 I want to create bills in my App. Each
I am working on rails project and I am trying to get exceptions to

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.