Re: First page viewed is slow

Norm,

I don't have passenger loaded in development.  Let me do that and get back to you. (Just running mongrel)

Last edited by drericha (2010-12-17 15:07:47)

Re: First page viewed is slow

drericha wrote:

Thanks Norm for you reply.  A clarification though - would Passenger be suspect even though the production log says the login page was rendered in sub-second time.  I have watched the log while this is taking place and the login page is said to be rendered, but I don't get an html page on the client until 35+ seconds later (I used curl to request the page to eliminate any browser issues).

Important point. Check WHEN the page is rendered (and logfile updated).

If passenger has to start a new process then the 35 second wait will probably be

Use curl to access the page
Passenger receives the request.
Sassenger starting up a rails process - 34.5 seconds
rails process rendering the page (and logfile updated) - 0.5 seconds

Check the timestamp for the request compared to when you curl'd it. If the timestamp for the request immediately after the user clicks or is it happening a long time after? If it is the former then the problem is as mentioned above. If it is the latter, then it is another problem.

Re: First page viewed is slow

Thanks, ken22 and RurouniJones, for you replies.  That helps clarify my observations. 

I found some apache configuration options that seem to help tremendously in lieu of a cron-job:
http://stackoverflow.com/questions/8535 … 603#853603.

Re: First page viewed is slow

drericha wrote:

Thanks, ken22 and RurouniJones, for you replies.  That helps clarify my observations. 

I found some apache configuration options that seem to help tremendously in lieu of a cron-job:
http://stackoverflow.com/questions/8535 … 603#853603.

Indeed, but sometimes your are not able to change this settings, so then a crontask is a nice solution. In fact, I found a nice tool ( http://www.wekkars.com ) that does exactly what I want and it keeps my application alive and fast accessible for the visitors!