Re: When are the fcgi processes restarted (fwd)
Laszlo KAROLYI <laszlo <at> karolyi.hu>
2009-04-03 17:21:56 GMT
There shouldn't be, but it depends. If you have a heavy loaded site, try
raising PHP_FCGI_CHILDREN, so more processes will spawn (that means also
more parallel processing).
If php binary is in the kernel cache, launching a php process should not
cause an overhead with all its initializations.
The overhead in php is mostly the interpreting time of the php scripts.
You can speed up that using a bytecode compiler and cacher, like
eaccelerator, turck mmcache and stuff like that.
On Fri, 3 Apr 2009, James Matthews wrote:
> Thanks Laszlo,
> On linux is there alot of overhead on starting fcgi processes?
> On Fri, Apr 3, 2009 at 8:57 AM, Laszlo KAROLYI <laszlo <at> karolyi.hu> wrote:
>> in your config, "PHP_FCGI_MAX_REQUESTS" => "1000" shows that each FCGI
>> process should quit after 1000 requests. if there's a memory leak in php, or
>> any of it's used modules, php can start eating up your memory (until you
>> don't limit it with ulimit but that's another story).
>> try lowering this number to 100 or lower, so the processes will quit and
>> restart earlier.
>> Karolyi Laszlo
>> On Fri, 3 Apr 2009, James Matthews wrote:
>>> After my site gets hit by a load of users the FCGI processes consume
>>> But when do they restart? Can I force them to restart?
>>> Here is my config file http://pastebin.ca/1380981