planet-admin Apprentice
Joined: 27 Mar 2004 Posts: 213 Location: Boise, ID
|
Posted: Fri Feb 16, 2007 12:30 am Post subject: Lighttpd Questions about FastCGI |
|
|
I have lighttpd installed on a server, gentoo 2006.1, kernel 2.6.20, amd64, php5, mod_fastcgi. Every so often, the fastcgi processes (I have 30, with no adaptive spawning) drop in cpu usage to less than the top window I'm using, and then about 5 seconds later, all 30 spring to life (about 70% cpu each), and then it settles back down to the normal 4-5 active php-cgi processes(having any cpu load).
Thi site lags for these few seconds. I haven't discovered why this is occuring, I thought it might be adaptive spawning, but I set max-procs == min-procs, therefore disabling active spawning, and the issue still occurs. While it is only occasionally, it is a marked lag during these periods that I would like to eliminate.
mod_fastcgi.conf
Code: |
###############################################################################
# mod_fastcgi.conf
# include'd by lighttpd.conf.
# $Header: /var/cvsroot/gentoo-x86/www-servers/lighttpd/files/conf/mod_fastcgi.c onf,v 1.2 2005/08/27 12:36:13 ka0ttic Exp $
###############################################################################
server.modules += ("mod_fastcgi")
fastcgi.server = ( ".php" =>
( "localhost" =>
(
"socket" => "/var/run/fastcgi.sock",
"min-procs" => 30,
"max-procs" => 30,
"bin-path" => "/usr/bin/php-cgi"
)
)
)
# vim: set ft=conf foldmethod=marker et :
|
If anyone has any ideas, it'd be much appreciated.
Thanks,
Michael _________________ Michael S. Moody
Sr. Systems Engineer
Global Systems Consulting
Web: http://www.GlobalSystemsConsulting.com |
|