# Ruby 1.9.1 intermittently slow

**URL:** <https://www.ruby-forum.com/t/ruby-1-9-1-intermittently-slow/181535>\
**Category:** Rails\
**Created:** [January 13, 2010, 11:55am UTC](https://www.ruby-forum.com/t/ruby-1-9-1-intermittently-slow/181535 "2010-01-13T11:55:53Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![c\_allison](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f475e1/32.png) [@c\_allison](https://www.ruby-forum.com/u/c_allison)\
**Post date:** [January 13, 2010, 11:55am UTC](https://www.ruby-forum.com/t/ruby-1-9-1-intermittently-slow/181535/1 "2010-01-13T11:55:53Z")

</div>

Hi

I built a web app using Ruby 1.8.6. Then used Ruby Enterprise Edition  
and Passenger (and Apache) for production. Everything was good.

Then on a whim I decided to compile ruby 1.9.1 from source and point  
my Passenger config to the new ruby binaries.

I fixed a couple things in the app, then I was up and running. However  
when the app sits unused for a while, the next time I try to access it  
takes several seconds. After this “warm up” it’s nice and snappy  
again, and remains that way until I leave it.

Is this normal behavior?

---

<div class="post-metadata">

**Author:** ![c\_allison](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/f475e1/32.png) [@c\_allison](https://www.ruby-forum.com/u/c_allison)\
**Post date:** [January 13, 2010, 1:22pm UTC](https://www.ruby-forum.com/t/ruby-1-9-1-intermittently-slow/181535/2 "2010-01-13T13:22:31Z")

</div>

On Tue, Jan 12, 2010 at 11:01 AM, c\_allison [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)  
wrote:

> takes several seconds. After this “warm up” it’s nice and snappy  
> again, and remains that way until I leave it.
> 
> Is this normal behavior?

Do you build the Apache module, mod\_passenger.so, using Ruby 1.9.1  
passenger scripts? Next, it really depends on your hosting company how  
they manage idle processes because some hosting companies shutdown  
the process after N minutes of idle time. Then the next request will  
get  
things  
going again. Lastly, I would check with your hosting on their  
administrative  
policy.

Good luck,

-Conrad
