Migrated app to rails 3, now very slow bootup times

We tried to migrate our app to rails 3/ruby 1.9.2 and now have huge
problems with the initialization time of the rails instances.

After a touch tmp/restart our passenger 2.2.4 needs several
minutes(!!) to boot up 20 instances and to serve the first requests.

We didn’t had that problem in rails 2. I would love to find out what
is taking so long, but I don’t have any clue on where to look for it.
How do I debug this? Did anybody had the same experience?

On Sep 24, 9:31 am, Bodo T. [email protected] wrote:

We tried to migrate our app to rails 3/ruby 1.9.2 and now have huge
problems with the initialization time of the rails instances.

After a touch tmp/restart our passenger 2.2.4 needs several
minutes(!!) to boot up 20 instances and to serve the first requests.

I would suggest trying the new passenger standalone, and see if that
improves your speeds. Then if that helps definitely try out the full
passenger 3 beta with your application.

We didn’t had that problem in rails 2. I would love to find out what
is taking so long, but I don’t have any clue on where to look for it.
How do I debug this? Did anybody had the same experience?

You could also try profiling your application to see where you can
improve.

Yes, the passenger 3 beta is far better. We now have the same bootup
time as with rails 2.

Thanks!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs