Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
Lighttpd Questions about FastCGI
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
planet-admin
Apprentice
Apprentice


Joined: 27 Mar 2004
Posts: 213
Location: Boise, ID

PostPosted: Fri Feb 16, 2007 12:30 am    Post subject: Lighttpd Questions about FastCGI Reply with quote

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
Back to top
View user's profile Send private message
Pep
Tux's lil' helper
Tux's lil' helper


Joined: 29 Sep 2002
Posts: 93
Location: Spain

PostPosted: Sun Apr 15, 2007 1:11 am    Post subject: Reply with quote

Update to 1.4.15
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum