Loading time in rails

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

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

Darian Shimy

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)

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