# Lighttpd+dispatch.fcgi \*very\* slow, even before app gets control

**URL:** <https://www.ruby-forum.com/t/lighttpd-dispatch-fcgi-very-slow-even-before-app-gets-control/120801>\
**Category:** Rails\
**Created:** [November 20, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/lighttpd-dispatch-fcgi-very-slow-even-before-app-gets-control/120801 "2007-11-20T18:25:35Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![casper\_the\_ghost](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/c/58956e/32.png) [@casper\_the\_ghost](https://www.ruby-forum.com/u/casper_the_ghost)\
**Post date:** [November 20, 2007, 6:25pm UTC](https://www.ruby-forum.com/t/lighttpd-dispatch-fcgi-very-slow-even-before-app-gets-control/120801/1 "2007-11-20T18:25:35Z")

</div>

Hi,

We are running Rails + lighttpd + fastcgi (dispatch.fcgi).

At a customer site, we are seeing very slow responses. I have turned  
on Rails  
debug logs to see where the bottleneck is.

From watching the system, I can see that dispatch.fcgi runs for about  
10 seconds before any logs are written. The process runs at about  
100% cpu for this time.

How can I track down this problem? Has anyone seen anything like this  
before?

Thanks,

David
