# Application extremely slow

**URL:** <https://www.ruby-forum.com/t/application-extremely-slow/74080>\
**Category:** Rails\
**Created:** [October 29, 2006, 8:53pm UTC](https://www.ruby-forum.com/t/application-extremely-slow/74080 "2006-10-29T20:53:44Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![WDZ](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b9bd4f/32.png) [@WDZ](https://www.ruby-forum.com/u/WDZ)\
**Post date:** [October 29, 2006, 8:53pm UTC](https://www.ruby-forum.com/t/application-extremely-slow/74080/1 "2006-10-29T20:53:44Z")

</div>

Hi,

I am running a sample application using InstantRails (1.3a) in Windows  
XP local machine. I set the mode to production, and started SCGI  
server. Every time it takes almost 4 minutes to open my application’s  
home page, and subsequent pages also take minutes to load. Something  
must be wrong.

In public/.htaccess, there is one line:  
RewriteRule ^(.\*)$ dispatch.cgi [QSA,L]  
Since I am using SCGI server, I am not sure if the above line is OK.  
InstantRails 1.3a contains Apache 1.3.

Does anyone out there have any idea why it’s so slow and how to fix it?

Thanks a lot!

wdz

---

<div class="post-metadata">

**Author:** ![WDZ](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b9bd4f/32.png) [@WDZ](https://www.ruby-forum.com/u/WDZ)\
**Post date:** [November 7, 2006, 10:46am UTC](https://www.ruby-forum.com/t/application-extremely-slow/74080/2 "2006-11-07T10:46:14Z")

</div>

SCGI _IS_ horribly slow, period.

Either use FastCGI, or even better, mongrel.

[http://mongrel.rubyforge.org](http://mongrel.rubyforge.org)

---

<div class="post-metadata">

**Author:** ![WDZ](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b9bd4f/32.png) [@WDZ](https://www.ruby-forum.com/u/WDZ)\
**Post date:** [November 7, 2006, 10:47am UTC](https://www.ruby-forum.com/t/application-extremely-slow/74080/3 "2006-11-07T10:47:08Z")

</div>

On 10/30/06, Thorsten L [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> SCGI _IS_ horribly slow, period.
> 
> Either use FastCGI, or even better, mongrel.
> 
> [http://mongrel.rubyforge.org](http://mongrel.rubyforge.org)

It’s not that slow… something else is going on.

But SCGI is deprecated and you really should use Mongrel instead. I  
recommend switching to Instant Rails 1.4 which replaced SCGI with  
Mongrel.

Curt

---

<div class="post-metadata">

**Author:** ![WDZ](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b9bd4f/32.png) [@WDZ](https://www.ruby-forum.com/u/WDZ)\
**Post date:** [November 7, 2006, 10:49am UTC](https://www.ruby-forum.com/t/application-extremely-slow/74080/4 "2006-11-07T10:49:00Z")

</div>

I’m building a personal image hosting site to learn rails. I’m using  
the SCGI dispatcher and it seems about the same as FastCGI. I’m  
running it on a pretty old XP machine with InstantRail and a  
slow/shared DSL internet connection. Takes about 10 seconds for the  
initial page and 5 seconds for other pages. I did have a problem once  
which made it go very slow. I would check my running processes and  
there would be like 7 ruby.exe’s running. I redid the config and it  
fixed it. I’ll have to check mongrel out.

If you want to see my sites speed check here:  
[http://photoalbum.dyndns.org/photos/list](http://photoalbum.dyndns.org/photos/list)

---

<div class="post-metadata">

**Author:** ![WDZ](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/w/b9bd4f/32.png) [@WDZ](https://www.ruby-forum.com/u/WDZ)\
**Post date:** [November 7, 2006, 10:47am UTC](https://www.ruby-forum.com/t/application-extremely-slow/74080/5 "2006-11-07T10:47:14Z")

</div>

I am convinced to use Mongrel. Thank both of you for the information!

wdz
