Hello folks, I was wondering... I have noticed that initially whenever I first visit my rails site at: http://www.redframecard.com/ There is often a 3 to 5 second pause before the server responds the first time. After that it''s lightning fast. If activity dies down on the site will the fcgi processes die out as well? It seems like the pause is becuase the server has to start a new fcgi thread. Can someone explain to me what exactly is going on and can I do anything about it? - Jim
I also have the same situation and wondering how this delay can be prevented... - Derek On 9/22/05, Jim Jeffers <rails-u78NUfcIof50Y1uG8So6J1aTQe2KTcn/@public.gmane.org> wrote:> Hello folks, > > I was wondering... I have noticed that initially whenever I first > visit my rails site at: > http://www.redframecard.com/ > > There is often a 3 to 5 second pause before the server responds the > first time. After that it''s lightning fast. If activity dies down > on the site will the fcgi processes die out as well? It seems like > the pause is becuase the server has to start a new fcgi thread. Can > someone explain to me what exactly is going on and can I do anything > about it? > > - Jim > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Derek Haynes HighGroove Studios - http://www.highgroove.com Keeping it Simple. 404.593.4879
Dreamhost has the FCGI processes killed after a certain time of inactivity, so you can either switch to some sort of dedicated hosting solution, or you could run a script that hits the site every minute... like this crontab entry: * * * * * /usr/bin/lynx -dump www.redframecard.com > /dev/null Someone told me Textdrive didn''t do this... can''t confirm that though. -Jeff ----- Original Message ----- From: "Derek Haynes" <derek.haynes-cRsPOODq9VkXQ3Lr6voeyA@public.gmane.org> To: <rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org> Sent: Thursday, September 22, 2005 2:23 PM Subject: Re: [Rails] Noticeable Delay in Initial Server Response I also have the same situation and wondering how this delay can be prevented... - Derek On 9/22/05, Jim Jeffers <rails-u78NUfcIof50Y1uG8So6J1aTQe2KTcn/@public.gmane.org> wrote:> Hello folks, > > I was wondering... I have noticed that initially whenever I first > visit my rails site at: > http://www.redframecard.com/ > > There is often a 3 to 5 second pause before the server responds the > first time. After that it''s lightning fast. If activity dies down > on the site will the fcgi processes die out as well? It seems like > the pause is becuase the server has to start a new fcgi thread. Can > someone explain to me what exactly is going on and can I do anything > about it? > > - Jim > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >-- Derek Haynes HighGroove Studios - http://www.highgroove.com Keeping it Simple. 404.593.4879 _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
I noticed this effect when using FCGI and Apache on TextDrive some months ago. When I looked at my logs, I saw that the FCGI process was dying, or something to that effect. The delay went away for me when I moved to Lighttpd. On 9/21/05, Jim Jeffers <rails-u78NUfcIof50Y1uG8So6J1aTQe2KTcn/@public.gmane.org> wrote:> > Hello folks, > > I was wondering... I have noticed that initially whenever I first > visit my rails site at: > http://www.redframecard.com/ > > There is often a 3 to 5 second pause before the server responds the > first time. After that it''s lightning fast. If activity dies down > on the site will the fcgi processes die out as well? It seems like > the pause is becuase the server has to start a new fcgi thread. Can > someone explain to me what exactly is going on and can I do anything > about it? > > - Jim > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
What if I switch to Zed A. Shaw''s SCGI method with Apache? Anyone know if this method will fair better in a shared hosting environment? - Jim On Sep 22, 2005, at 2:51 PM, Rory Hansen wrote:> I noticed this effect when using FCGI and Apache on TextDrive some > months ago. When I looked at my logs, I saw that the FCGI process > was dying, or something to that effect. > > The delay went away for me when I moved to Lighttpd. > > > On 9/21/05, Jim Jeffers <rails-u78NUfcIof50Y1uG8So6J1aTQe2KTcn/@public.gmane.org> wrote: > Hello folks, > > I was wondering... I have noticed that initially whenever I first > visit my rails site at: > http://www.redframecard.com/ > > There is often a 3 to 5 second pause before the server responds the > first time. After that it''s lightning fast. If activity dies down > on the site will the fcgi processes die out as well? It seems like > the pause is becuase the server has to start a new fcgi thread. Can > someone explain to me what exactly is going on and can I do anything > about it? > > - Jim > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >_______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
* Jim Jeffers [2005-09-23 15:27]:> > What if I switch to Zed A. Shaw''s SCGI method with Apache? Anyone > know if this method will fair better in a shared hosting environment? >Didn''t you say you were on Dreamhost? SCGI requires mod_scgi in your apache (or whatever) so unless DH has that you''re out of luck. And I doubt they have it unfortunately. Maybe once it matures a bit you could get them to switch... -- ________________________________ toddgrimason*todd[ at ]slack.net
Yes I am on Dreamhost... just my luck I guess. On Sep 23, 2005, at 12:33 PM, Todd Grimason wrote:> * Jim Jeffers [2005-09-23 15:27]: > >> >> What if I switch to Zed A. Shaw''s SCGI method with Apache? >> Anyone >> know if this method will fair better in a shared hosting >> environment? >> >> > > Didn''t you say you were on Dreamhost? SCGI requires mod_scgi in your > apache (or whatever) so unless DH has that you''re out of luck. And I > doubt they have it unfortunately. Maybe once it matures a bit you > could > get them to switch... > > > -- > > ________________________________ > toddgrimason*todd[ at ]slack.net > > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > > >