# Migrated app to rails 3, now very slow bootup times

**URL:** <https://www.ruby-forum.com/t/migrated-app-to-rails-3-now-very-slow-bootup-times/195531>\
**Category:** Rails\
**Created:** [September 24, 2010, 3:34pm UTC](https://www.ruby-forum.com/t/migrated-app-to-rails-3-now-very-slow-bootup-times/195531 "2010-09-24T15:34:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Bodo\_T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3da27b/32.png) [@Bodo\_T](https://www.ruby-forum.com/u/Bodo_T)\
**Post date:** [September 24, 2010, 3:34pm UTC](https://www.ruby-forum.com/t/migrated-app-to-rails-3-now-very-slow-bootup-times/195531/1 "2010-09-24T15:34:42Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![Bodo\_T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3da27b/32.png) [@Bodo\_T](https://www.ruby-forum.com/u/Bodo_T)\
**Post date:** [September 24, 2010, 11:31pm UTC](https://www.ruby-forum.com/t/migrated-app-to-rails-3-now-very-slow-bootup-times/195531/2 "2010-09-24T23:31:46Z")

</div>

On Sep 24, 9:31 am, Bodo T. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) 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.

---

<div class="post-metadata">

**Author:** ![Bodo\_T](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/b/3da27b/32.png) [@Bodo\_T](https://www.ruby-forum.com/u/Bodo_T)\
**Post date:** [September 25, 2010, 10:28am UTC](https://www.ruby-forum.com/t/migrated-app-to-rails-3-now-very-slow-bootup-times/195531/3 "2010-09-25T10:28:59Z")

</div>

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

Thanks!
