# Mod\_fcgid first request slow

**URL:** <https://www.ruby-forum.com/t/mod-fcgid-first-request-slow/78453>\
**Category:** Rails\
**Created:** [March 8, 2006, 3:46pm UTC](https://www.ruby-forum.com/t/mod-fcgid-first-request-slow/78453 "2006-03-08T15:46:14Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![adamdorsey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Post date:** [March 8, 2006, 3:46pm UTC](https://www.ruby-forum.com/t/mod-fcgid-first-request-slow/78453/1 "2006-03-08T15:46:14Z")

</div>

I have posted this before with not much response so I am posing the  
question  
again. Is there a solution for this very apparent issue with mod\_fcgid  
that  
the “First connection is incredibly slow”. It seems its b/c mod\_fcgid  
doesnt keep at least 1 persistent connection around that this first  
connection needs to start up and then every other request is fast.

Is there a solution to this? This doesnt seem like a very production  
ready  
situation for anyone to be in with a website. Are people moving to SCGI  
b/c  
of this ?

thanks  
adam

---

<div class="post-metadata">

**Author:** ![adamdorsey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Post date:** [March 8, 2006, 3:55pm UTC](https://www.ruby-forum.com/t/mod-fcgid-first-request-slow/78453/2 "2006-03-08T15:55:44Z")

</div>

You could always cron a request to the server.

I actually have a Nagios server making requests so that I can monitor  
the status anyway.

HTH.

Jon

–

> **[snowblink](https://snowblink.co.uk/)**
>
> snowblink.co.uk : Homepage

---

<div class="post-metadata">

**Author:** ![adamdorsey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Post date:** [March 8, 2006, 4:26pm UTC](https://www.ruby-forum.com/t/mod-fcgid-first-request-slow/78453/3 "2006-03-08T16:26:16Z")

</div>

yea that was the only thing i thought of as well, but that seemed more  
of a  
hack then a real solution. I dont forsee any other option at this point  
either which is unfortunate.

This is one area that I really think rails is lacking and is causing so  
much  
lashback from other dev communities like java who have things like  
tomcat  
with a very stable apache module (mod\_jk). Rails desparately needs a  
mod\_rails or something to alleviate the hundreds of headaches associated  
with this and to make it fully 3 tier. Not to mention over half the  
population uses apache and constant recommendations of using lighttpd  
with  
apache I personally think doesnt make a whole lot of sense since apache  
is  
so widespread common and well known. I dont see why we should have to  
proxy  
a web server to another webserver b/c apache support is somewhat  
“broken”.

adam

---

<div class="post-metadata">

**Author:** ![adamdorsey](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/a/ed8c4c/32.png) [@adamdorsey](https://www.ruby-forum.com/u/adamdorsey)\
**Post date:** [March 8, 2006, 4:38pm UTC](https://www.ruby-forum.com/t/mod-fcgid-first-request-slow/78453/4 "2006-03-08T16:38:27Z")

</div>

On 3/8/06, Adam D. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> apache I personally think doesnt make a whole lot of sense since apache is  
> so widespread common and well known. I dont see why we should have to proxy  
> a web server to another webserver b/c apache support is somewhat “broken”.
> 
> adam

The folks responsible for it are working on it:

[http://weblog.rubyonrails.org/articles/2005/12/29/apache-gets-serious-about-fastcgi](http://weblog.rubyonrails.org/articles/2005/12/29/apache-gets-serious-about-fastcgi)

–  
Rick O.  
[http://techno-weenie.net](http://techno-weenie.net)
