# Rails incredibly slow?

**URL:** <https://www.ruby-forum.com/t/rails-incredibly-slow/120149>\
**Category:** Ruby\
**Created:** [November 14, 2007, 5:01am UTC](https://www.ruby-forum.com/t/rails-incredibly-slow/120149 "2007-11-14T05:01:03Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![rjeffries](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e495f1/32.png) [@rjeffries](https://www.ruby-forum.com/u/rjeffries)\
**Post date:** [November 14, 2007, 5:01am UTC](https://www.ruby-forum.com/t/rails-incredibly-slow/120149/1 "2007-11-14T05:01:03Z")

</div>

Chet and I installed Instant Rails on our laptops. My laptop is faster  
than his and has more memory. But his rails is working and mine is  
infinitely slow. I’ll dump what I know here in hopes that something in  
it is helpful. Looking for ideas and things to try.

On his laptop doing things like  
ruby script/generate controller foo  
will take maybe 20 seconds. on my laptop it takes four or five  
MINUTES.

on my machine  
ruby -v  
comes back instantly.  
rails -v  
takes about 25 seconds to come back. (I don’t have that figure for  
Chet’s machine but I’m hoping that if your machine does it quickly  
that may serve as a clue.

If I browse to rails\_apps and say “rails demo” to create the demo  
project, it takes 4 minutes to do anything, then spits out the creates  
vert raoudkt.

When I CD to demo and say “ruby script/server” it hangs for eight (8)  
minutes, then starts saying booting mongrel, rails app starting, …,  
starting mongrel listening at 0.0.0.0:3000, and starting rails with  
development environment …  
(it has not as yet printed the time-stamped lines shown in the Agile  
Web D. with Rails book. I’ll wait some more …

It has been fifteen minutes and it hasn’t said anything beyond the  
starting rails message. I’ll try the browser.

Firefoxhas been waiting for localhost for 20 minutes. Either its very  
slow or it is hanging somewhere. Ruby is getting about 30 or 40  
percent of the CPU. Both cores are running at about that percentage.  
Explorer, winlogon, and Instant Rails are all getting a bit of CPU  
from time to time.

Ideas? I could sure use one. Thanks!

Ron J.  
[www.XProgramming.com](http://www.XProgramming.com)

---

<div class="post-metadata">

**Author:** ![rjeffries](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/r/e495f1/32.png) [@rjeffries](https://www.ruby-forum.com/u/rjeffries)\
**Post date:** [November 14, 2007, 7:45am UTC](https://www.ruby-forum.com/t/rails-incredibly-slow/120149/2 "2007-11-14T07:45:16Z")

</div>

On 11/13/07, Ron J. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> Chet and I installed Instant Rails on our laptops. My laptop is faster  
> than his and has more memory. But his rails is working and mine is  
> infinitely slow. I’ll dump what I know here in hopes that something in  
> it is helpful. Looking for ideas and things to try.

Hey Ron, I’m not too familiar with Rails on Windows but have heard  
similar reports of extreme slowness, none with a definitive  
resolution.

One mention suggests checking that the RUBYOPT environment variable is  
set to ‘-rubygems’ not ‘rubygems’ (no hyphen), but that may be  
grasping at straws.

You could also check out one of the Rails IDEs, like RadRails,  
Netbeans, Idea, Komodo, etc, or try jruby 🙂

You can also ask the folks on the Rails mailing list:  
[http://groups.google.com/group/rubyonrails-talk](http://groups.google.com/group/rubyonrails-talk)

Best,  
jeremy
