recommended rails performance tuning

Discussion in 'Ruby/Rails' started by Tomh, Nov 23, 2006.

  1. Tomh

    Tomh Member


    i've been playing a bit with the server now and i found that the first request to a new page are generally pretty slow (5-20 req/s) while the next ones are usually much and much faster. When i changed the max idle time for LSAPI in the env vars text area to 300 the slow loads did decrease to only the first time to one page and not the first time to any page.

    Are there more recommended settings to make rails faster?
  2. mistwang

    mistwang LiteSpeed Staff

    That's normal, because LiteSpeed start Rails application on demand, and stop it if it not in use. Rails framework has very high startup cost, that's why you get a few seconds delay for the first request. You can have the app started when LiteSpeed starts, and increase the max idle time.
  3. Tomh

    Tomh Member

    What is recommended for the best performance? And how can i start the app on load time i seem to have missed it somewhere. thanks!!

Share This Page