Its taking about 5 minutes for my rails application to load in development environment. Please suggest what changes can be done to speed up loading time. Versions used Rails 2.3.4 ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] gems 1.3.5 Logs at startup ---------------- D:\InstantRails-2.0-win\rails_apps\myapp>time The current time is: 16:30:23.95 Enter the new time: D:\InstantRails-2.0-win\rails_apps\myapp> D:\InstantRails-2.0-win\rails_apps\myapp>ruby script/server => Booting Mongrel (use ''script/server webrick'' to force WEBrick) => Rails application starting on http://0.0.0.0:3000 => Call with -d to detach => Ctrl-C to shutdown server ** Starting Mongrel listening at 0.0.0.0:3000 ** Starting Rails with development environment... ** Rails loaded. ** Loading any Rails specific GemPlugins ** Signals ready. INT => stop (no restart). ** Mongrel 1.1.5 available at 0.0.0.0:3000 ** Use CTRL-C to stop. ** INT signal received. Exiting D:\InstantRails-2.0-win\rails_apps\myapp>time The current time is: 16:34:07.82 -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Assuming this is a Rails issue and not a hardware/OS memory swapping issue, I would start looking the the gems and plugins you have installed. My guess is you have something that is taking a long time to initialize. How long does an empty rails application take to start? Darian Shimy -- http://www.darianshimy.com http://twitter.com/dshimy On Tue, Nov 24, 2009 at 3:18 AM, Prashant Thakur <prashant.thakurs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Its taking about 5 minutes for my rails application to load in > development environment. Please suggest what changes can be done to > speed up loading time. > > Versions used > > Rails 2.3.4 > > ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] > > gems 1.3.5 > > Logs at startup > ---------------- > D:\InstantRails-2.0-win\rails_apps\myapp>time > The current time is: 16:30:23.95 > Enter the new time: > D:\InstantRails-2.0-win\rails_apps\myapp> > D:\InstantRails-2.0-win\rails_apps\myapp>ruby script/server > => Booting Mongrel (use ''script/server webrick'' to force WEBrick) > => Rails application starting on http://0.0.0.0:3000 > => Call with -d to detach > => Ctrl-C to shutdown server > ** Starting Mongrel listening at 0.0.0.0:3000 > ** Starting Rails with development environment... > ** Rails loaded. > ** Loading any Rails specific GemPlugins > ** Signals ready. INT => stop (no restart). > ** Mongrel 1.1.5 available at 0.0.0.0:3000 > ** Use CTRL-C to stop. > ** INT signal received. > Exiting > > D:\InstantRails-2.0-win\rails_apps\myapp>time > The current time is: 16:34:07.82 > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Hi Darian , The time is same for an empty rails application as well. I am thinking that probably its looking for some updates or loading information about Gems and plugins at runtime iso using the latest. Like for rails it starts from 2.0.2 . This i knew when I removed this version from my gems directory. Is there any way that I keep only the latest versions and force rails/ ruby to use the same instead of going through the complete list if this is the source of problem. Is there a possibility that startup is looking for some remote updates during startup , If yes then is there any way to disable the same. List of Gems installed *** LOCAL GEMS *** actionmailer (2.3.4) actionpack (2.3.4) activerecord (2.3.4) activeresource (2.3.4) activesupport (2.3.4) builder (2.1.2) cgi_multipart_eof_fix (2.5.0) fxri (0.3.6) fxruby (1.6.16) gem_plugin (0.2.3) hpricot (0.6.164) log4r (1.0.5) mongrel (1.1.5) mysql (2.8.1) ptools (1.1.6) rack (1.0.1) rails (2.3.4) rake (0.8.7) ruby-opengl (0.60.0) rubygems-update (1.3.5) test-unit (2.0.1) win32-api (1.2.1) win32-clipboard (0.4.4) win32-dir (0.3.2) win32-eventlog (0.5.0) win32-file (0.5.5) win32-file-stat (1.3.1) win32-process (0.5.9) win32-sapi (0.1.4) win32-sound (0.4.1) windows-api (0.2.4) windows-pr (0.9.3) On Nov 24, 10:12 pm, Darian Shimy <dsh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Assuming this is a Rails issue and not a hardware/OS memory swapping > issue, I would start looking the the gems and plugins you have > installed. My guess is you have something that is taking a long time > to initialize. How long does an empty rails application take to > start? > > Darian Shimy > --http://www.darianshimy.comhttp://twitter.com/dshimy > > On Tue, Nov 24, 2009 at 3:18 AM, Prashant Thakur > > > > <prashant.thak...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: > > Its taking about 5 minutes for my rails application to load in > > development environment. Please suggest what changes can be done to > > speed up loading time. > > > Versions used > > > Rails 2.3.4 > > > ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] > > > gems 1.3.5 > > > Logs at startup > > ---------------- > > D:\InstantRails-2.0-win\rails_apps\myapp>time > > The current time is: 16:30:23.95 > > Enter the new time: > > D:\InstantRails-2.0-win\rails_apps\myapp> > > D:\InstantRails-2.0-win\rails_apps\myapp>ruby script/server > > => Booting Mongrel (use ''script/server webrick'' to force WEBrick) > > => Rails application starting onhttp://0.0.0.0:3000 > > => Call with -d to detach > > => Ctrl-C to shutdown server > > ** Starting Mongrel listening at 0.0.0.0:3000 > > ** Starting Rails with development environment... > > ** Rails loaded. > > ** Loading any Rails specific GemPlugins > > ** Signals ready. INT => stop (no restart). > > ** Mongrel 1.1.5 available at 0.0.0.0:3000 > > ** Use CTRL-C to stop. > > ** INT signal received. > > Exiting > > > D:\InstantRails-2.0-win\rails_apps\myapp>time > > The current time is: 16:34:07.82 > > > -- > > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en.-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
I''m not aware of Rails doing any checks during startup. The only thing that comes to mind would be to check any antivirus software or malware detection software running that could be causing more work. Can you run the activity monitor to see if you are memory, cpu or IO bound? One of those needs to be peaking for it to take that long. Darian Shimy -- http://www.darianshimy.com http://twitter.com/dshimy On Tue, Nov 24, 2009 at 9:12 PM, Prashant <prashant.thakurs-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote:> Hi Darian , > > The time is same for an empty rails application as well. I am thinking > that probably its looking for some updates or loading information > about Gems and plugins at runtime iso using the latest. Like for rails > it starts from 2.0.2 . This i knew when I removed this version from my > gems directory. > > Is there any way that I keep only the latest versions and force rails/ > ruby to use the same instead of going through the complete list if > this is the source of problem. > > Is there a possibility that startup is looking for some remote updates > during startup , If yes then is there any way to disable the same. > > List of Gems installed > > > *** LOCAL GEMS *** > > actionmailer (2.3.4) > actionpack (2.3.4) > activerecord (2.3.4) > activeresource (2.3.4) > activesupport (2.3.4) > builder (2.1.2) > cgi_multipart_eof_fix (2.5.0) > fxri (0.3.6) > fxruby (1.6.16) > gem_plugin (0.2.3) > hpricot (0.6.164) > log4r (1.0.5) > mongrel (1.1.5) > mysql (2.8.1) > ptools (1.1.6) > rack (1.0.1) > rails (2.3.4) > rake (0.8.7) > ruby-opengl (0.60.0) > rubygems-update (1.3.5) > test-unit (2.0.1) > win32-api (1.2.1) > win32-clipboard (0.4.4) > win32-dir (0.3.2) > win32-eventlog (0.5.0) > win32-file (0.5.5) > win32-file-stat (1.3.1) > win32-process (0.5.9) > win32-sapi (0.1.4) > win32-sound (0.4.1) > windows-api (0.2.4) > windows-pr (0.9.3) > > > > On Nov 24, 10:12 pm, Darian Shimy <dsh...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> Assuming this is a Rails issue and not a hardware/OS memory swapping >> issue, I would start looking the the gems and plugins you have >> installed. My guess is you have something that is taking a long time >> to initialize. How long does an empty rails application take to >> start? >> >> Darian Shimy >> --http://www.darianshimy.comhttp://twitter.com/dshimy >> >> On Tue, Nov 24, 2009 at 3:18 AM, Prashant Thakur >> >> >> >> <prashant.thak...-Re5JQEeQqe8AvxtiuMwx3w@public.gmane.org> wrote: >> > Its taking about 5 minutes for my rails application to load in >> > development environment. Please suggest what changes can be done to >> > speed up loading time. >> >> > Versions used >> >> > Rails 2.3.4 >> >> > ruby 1.8.6 (2008-08-11 patchlevel 287) [i386-mswin32] >> >> > gems 1.3.5 >> >> > Logs at startup >> > ---------------- >> > D:\InstantRails-2.0-win\rails_apps\myapp>time >> > The current time is: 16:30:23.95 >> > Enter the new time: >> > D:\InstantRails-2.0-win\rails_apps\myapp> >> > D:\InstantRails-2.0-win\rails_apps\myapp>ruby script/server >> > => Booting Mongrel (use ''script/server webrick'' to force WEBrick) >> > => Rails application starting onhttp://0.0.0.0:3000 >> > => Call with -d to detach >> > => Ctrl-C to shutdown server >> > ** Starting Mongrel listening at 0.0.0.0:3000 >> > ** Starting Rails with development environment... >> > ** Rails loaded. >> > ** Loading any Rails specific GemPlugins >> > ** Signals ready. INT => stop (no restart). >> > ** Mongrel 1.1.5 available at 0.0.0.0:3000 >> > ** Use CTRL-C to stop. >> > ** INT signal received. >> > Exiting >> >> > D:\InstantRails-2.0-win\rails_apps\myapp>time >> > The current time is: 16:34:07.82 >> >> > -- >> >> > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. >> > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFFw@public.gmane.org. >> > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org >> > For more options, visit this group athttp://groups.google.com/group/rubyonrails-talk?hl=en. > > -- > > You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. > For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en. > > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.