recommended rails performance tuning

#1
Hi,

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?
 

mistwang

LiteSpeed Staff
#2
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
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!!
 
Top