FastCGI/Apache with 2+ clients - 1 client served while others wait 5-9 seconds?

"Mark F" <[email protected]>
Newsgroups gmane.comp.web.fastcgi.devel,gmane.spam.detected
Message-ID <[email protected]>
Good morning,

I'm experiencing an unusual problem and I don't know where the problem 
resides.  FastCGI boosted our applications performance several-fold, but we 
have a concern when dealing with more than one user.  I can duplicate the 
problem at will with this scenario:

"Set up two curl scripts  100 requests to our [F]CGI script each.  The test 
passes when one client is making a request.  As soon as two or more are 
incorporated, one client's requests are satisfied; and the other 2 or more 
clients sit there paused for 5 to 9 seconds.  The pause cycles through N 
number of clients; always leaving one client satisfied and N-1 clients 
paused for 5-9 seconds."

Is this a problem with the FastCGI configuration or in the Apache 
configuration?  I've been working on Apache servers for a while and have 
never seen this problem until FastCGI was introduced into one of our setups 
(hence the post here).

Another interesting tidbit is this - I assumed FastCGI would spawn several 
instances of the script.  I monitored our process list with a 'top' command 
and only saw one fastCGI instance of our script running the entire time it 
was satisfying the 3 clients.

I've attached our FastCGI configuration below.  We are running Apache on a 
Debian Linux server.  Any insight into the problem would be greatly 
appreciated.

Thanks,

- Mark

<IfModule mod_fastcgi.c>
  FastCgiConfig -appConnTimeout 5
  FastCgiConfig -multiThreshold 50
  FastCgiConfig -idle-timeout 30
  FastCgiConfig -init-start-delay 1
  FastCgiConfig -minProcesses 20
  FastCgiConfig -maxClassProcesses 200
  FastCgiConfig -maxProcesses 200
  FastCgiConfig -startDelay 3
  FastCgiConfig -listen-queue-depth 200
  FastCgiConfig -flush
  AddHandler fastcgi-script .fcgi .fcg .fpl
  FastCgiIpcDir /tmp
</IfModule>

_________________________________________________________________
PC Magazine’s 2007 editors’ choice for best Web mail—award-winning Windows 
Live Hotmail. 
http://imagine-windowslive.com/hotmail/?locale=en-us&ocid=TXT_TAGHM_migration_HM_mini_pcmag_0507

___________________________________
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.