Ruby 1.9.1 intermittently slow

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?

On Tue, Jan 12, 2010 at 11:01 AM, c_allison [email protected]
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

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