first hit after periods of inactivity is slow

Discussion in 'Ruby/Rails' started by cswilliams, Apr 8, 2007.

  1. cswilliams

    cswilliams New Member

    Hi,
    I noticed that the first hit to my rails app after about 2-3 minutes of the server being completely idle takes about 5 seconds longer than subsequent hits. I read in other posts that this behavior is normal for the first hit when the webserver has just been turned on, but i have slowdown after periods of idle as well. I imagine this wouldn't be an issue once the server is under more load, but since it's just me using the server at the moment, I notice this slowdown alot. I was wondering if this is the normal behavior, or indicative of some other problem?

    Thanks!
  2. mistwang

    mistwang LiteSpeed Staff

    That's normal.
    Please check the "Max Idle Time" under "Ruby" tab.

Share This Page