When I run in development mode, my response time generates from < 1s to 5+s over the space of may reloads. Is this common? Thanks, Nick -- Nicholas Van Weerdenburg
On Oct 20, 2005, at 2:58 PM, Nicholas Van Weerdenburg wrote:> When I run in development mode, my response time generates from < > 1s to > 5+s over the space of may reloads. Is this common?Of course it depends on what your actions are doing, but I''m consistently at <1s for response times in dev mode (using fcgi). Are you sure you''re not using cgi, perhaps accidentally? - Jamis
On 10/20/05, Jamis Buck <jamis-uHoyYlH2B+GakBO8gow8eQ@public.gmane.org> wrote:> On Oct 20, 2005, at 2:58 PM, Nicholas Van Weerdenburg wrote: > > > When I run in development mode, my response time generates from < > > 1s to > > 5+s over the space of may reloads. Is this common? > > Of course it depends on what your actions are doing, but I''m > consistently at <1s for response times in dev mode (using fcgi). Are > you sure you''re not using cgi, perhaps accidentally? > > - Jamis > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >Hi Jamis, Yes, I''m sure. I start at < 1 sec, and then it creeps up. I am running on Windows XP, which from other threads may be a culprit. I read of some people running webrick with --daemon on unix. I haven''t tried fcgi for development, but I am running scgi for development now, and it helps, but there is still the gradual slowdown. I now have a batch file shortcut that is a one-click restart, and that helps. Now I just need to schedule that to run every x requers, or every minute or so. Thanks, Nick -- Nicholas Van Weerdenburg
On Oct 21, 2005, at 8:20 AM, Nicholas Van Weerdenburg wrote:> On 10/20/05, Jamis Buck <jamis-uHoyYlH2B+GakBO8gow8eQ@public.gmane.org> wrote: > >> On Oct 20, 2005, at 2:58 PM, Nicholas Van Weerdenburg wrote: >> >>> When I run in development mode, my response time generates from < >>> 1s to >>> 5+s over the space of may reloads. Is this common? >> >> Of course it depends on what your actions are doing, but I''m >> consistently at <1s for response times in dev mode (using fcgi). Are >> you sure you''re not using cgi, perhaps accidentally? > > Hi Jamis, > > Yes, I''m sure. I start at < 1 sec, and then it creeps up. I am running > on Windows XP, which from other threads may be a culprit. I read of > some people running webrick with --daemon on unix. > > I haven''t tried fcgi for development, but I am running scgi for > development now, and it helps, but there is still the gradual > slowdown. I now have a batch file shortcut that is a one-click > restart, and that helps. Now I just need to schedule that to run every > x requers, or every minute or so.I''ve not had a chance to use scgi yet, so I can''t speak for whether it is the culprit or not. (Zed, any thoughts on whether there is something in scgi causing this?) You may want to try with fcgi, just to see whether that works any better--I know I''ve had very good experiences with fcgi in development (although I''ve never tried it under Windows). - Jamis
I have noticed the same thing. If you Ctrl-C out of WEBrick and start it up again, the slowness is gone. Makes me worry about my production environment, I wonder if there''s some kind of resource leak. --- Jamis Buck <jamis-uHoyYlH2B+GakBO8gow8eQ@public.gmane.org> wrote:> On Oct 20, 2005, at 2:58 PM, Nicholas Van > Weerdenburg wrote: > > > When I run in development mode, my response time > generates from < > > 1s to > > 5+s over the space of may reloads. Is this common? > > Of course it depends on what your actions are doing, > but I''m > consistently at <1s for response times in dev mode > (using fcgi). Are > you sure you''re not using cgi, perhaps accidentally? > > - Jamis > > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails >__________________________________ Yahoo! Mail - PC Magazine Editors'' Choice 2005 http://mail.yahoo.com
Dave M wrote:>I have noticed the same thing. If you Ctrl-C out of >WEBrick and start it up again, the slowness is gone. > >Makes me worry about my production environment, I >wonder if there''s some kind of resource leak. > > >I have had the same issue. I noticed, though, that it is CPU bound, not memory bound. I do not know what it is, but stop and start fixes it. I am running on Debian Sarge, Rails installed from gem.
On 10/21/05, Dave M <davem1972-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote:> > > I have noticed the same thing. If you Ctrl-C out of > WEBrick and start it up again, the slowness is gone. > > Makes me worry about my production environment, I > wonder if there''s some kind of resource leak. >In development mode there is a memory leak. It''s been discussed countless times on the list, and I''m pretty sure it''s been fixed in the latest release candidate. Chris _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
2005/10/21, snacktime <snacktime@gmail.com>:> In development mode there is a memory leak. It's been discussed countless > times on the list, and I'm pretty sure it's been fixed in the latest release > candidate.I seem to have the same memory leak in dev mode with Apache2/SCGI on Win XP Pro. Ruby eats up 280+ Mb of RAM after twenty requests of so. I'm going to update to RC2 and see if that corrects the problem. Bye, François _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
If I never hit an error, my application runs forever in Development mode with no slowdown. As soon as I get an error screen, things go downhill from there.... especially if it''s an error in one of my database models. It''s development though, and the occasional restarts are worth not having to hassle with Apache for development. -----Original Message----- From: rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org [mailto:rails-bounces-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org] On Behalf Of snacktime Sent: Friday, October 21, 2005 12:47 PM To: rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org Subject: Re: [Rails] Rails Development Mode Slowdown On 10/21/05, Dave M <davem1972-/E1597aS9LQAvxtiuMwx3w@public.gmane.org> wrote: I have noticed the same thing. If you Ctrl-C out of WEBrick and start it up again, the slowness is gone. Makes me worry about my production environment, I wonder if there''s some kind of resource leak. In development mode there is a memory leak. It''s been discussed countless times on the list, and I''m pretty sure it''s been fixed in the latest release candidate. Chris _______________________________________________ Rails mailing list Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org http://lists.rubyonrails.org/mailman/listinfo/rails
Folks- There has been a memory leak in dev mode for quite a while now. I think I heard its fixed in the latest .14.2 but I am not sure. But its a know issue with older versions of rails. It doesn''t happen in production mode though. -EZra On Oct 21, 2005, at 10:11 AM, Dave M wrote:> > I have noticed the same thing. If you Ctrl-C out of > WEBrick and start it up again, the slowness is gone. > > Makes me worry about my production environment, I > wonder if there''s some kind of resource leak. > > > --- Jamis Buck <jamis-uHoyYlH2B+GakBO8gow8eQ@public.gmane.org> wrote: > > >> On Oct 20, 2005, at 2:58 PM, Nicholas Van >> Weerdenburg wrote: >> >> >>> When I run in development mode, my response time >>> >> generates from < >> >>> 1s to >>> 5+s over the space of may reloads. Is this common? >>> >> >> Of course it depends on what your actions are doing, >> but I''m >> consistently at <1s for response times in dev mode >> (using fcgi). Are >> you sure you''re not using cgi, perhaps accidentally? >> >> - Jamis >> >> _______________________________________________ >> Rails mailing list >> Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org >> http://lists.rubyonrails.org/mailman/listinfo/rails >> >> > > > > > > __________________________________ > Yahoo! Mail - PC Magazine Editors'' Choice 2005 > http://mail.yahoo.com > _______________________________________________ > Rails mailing list > Rails-1W37MKcQCpIf0INCOvqR/iCwEArCW2h5@public.gmane.org > http://lists.rubyonrails.org/mailman/listinfo/rails > >-Ezra Zygmuntowicz Yakima Herald-Republic WebMaster http://yakimaherald.com 509-577-7732 ezra-gdxLOakOTQ9oetBuM9ipNAC/G2K4zDHf@public.gmane.org