FastCGI/Ruby Problem

Michael Lovitt <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel
Message-ID <[email protected]>
We're running a Ruby web application (using Rails), and it
intermittently causes FastCGI to timeout, which results in this error
in apache.log:

[Thu Oct 14 15:32:42 2004] [error] [client XX.XX.XX.X] FastCGI: comm
with server "/usr/local/apache/htdocs/app/public/dispatch.fcgi"
aborted: idle timeout (30 sec)

It's always the same file that causes the timeout. It contains a fair
amount of database queries, but not a ridiculous amount (the Rails
production.log indicates that the action completes successfully in 1.1
seconds, of which .95 seconds is DB access time).

In the browser, the page appears to be loading for the full 30 seconds
(although most of the HTML appears immediately, with the last 1/6th of
it or so cut off at the bottom). When 30 seconds have passed, the
error appears in apache.log and the page finishes loading in its
entirety. From the user's perspective, the page loaded succesfully, it
just took a very long time. The log of course tells a different story.

We're stumped. Has anyone experienced anything like this?

SERVER INFO
Debian Linux
Apache 1.3.31
mod_fastcgi/2.4.2 (the C Ruby bindings)

Michael

___________________________________
fastcgi-developers mailing list
http://fastcgi.com/fastcgi-developers/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.