There is an issue with Rails, FastCGI and Apache2 on
Debian that I’ve been dealing with since I started
Rails development in late 2005. I’ve developed
various workarounds but have not been able to solve
the problem at the root.
Every so often, for reasons I’ve never been able to
determine, a load of dispatch.fcgi processes get
spawned and take over my whole server, effectively
rendering the web site useless. The only solution is
to manually kill the processes.
I’ve seen other posts about this issue but I’ve never
seen a real solution – only workarounds like having
a script that periodically searches for these
dispatch.fcgi processes and kills them.
Our web site is currently only in a test or beta
stage, so the issue isn’t too bad – but soon we’ll be
attracting a lot more traffic (I hope), and I don’t
feel comfortable not knowing why my server is killed
by dispatch.fcgi processes.
If anyone can provide information about this, I’ll
collate it and write it up properly and make it
accessible. My questions are:
What’s the cause? Is it a problem with the FCGI
module, Apache, or the Rails dispatcher?
Does the problem only exist for certain Rails
versions, or for Rails on Debian, or all Rails
versions on all *nix platforms?
If you’ve never experienced any problem like this,
and you use Apache 2 and FCGI with Rails, what version
of Rails do you use, and what *nix distro?
Finally, what’s a real solution to the problem?
I’ll accept having to change to a different web
server, a different version of Rails, or a different
distro if I absolutely know it will solve my problem.
Many thanks in advance for any info.
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around