Current time: 05-05-2024, 07:53 AM Hello There, Guest! (LoginRegister)


Post Reply 
Default fcgid configuration is wrong...
Author Message
kilburn Offline
Development Team
*****
Dev Team

Posts: 2,182
Joined: Feb 2007
Reputation: 34
Post: #1
Default fcgid configuration is wrong...
I've just read through this thread about fcgid process spawning, where it is made clear that mod_fcgid will not use any childs spawned by the php process.

On the other hand, our default configuration looks like:
Quote:#!/bin/sh
umask 022
PHPRC="{PHP_STARTER_DIR}/{DMN_NAME}/php5/"
export PHPRC

PHP_FCGI_CHILDREN=2
export PHP_FCGI_CHILDREN

exec {PHP5_FASTCGI_BIN}

Therefore, we are wasting the memory usage of this second process we're telling php to start.

Finally, the default configuration looks like this:
Code:
<IfModule mod_fcgid.c>
  AddHandler fcgid-script .php .php{PHP_VERSION}
  SocketPath /var/lib/apache2/fcgid/sock
  IdleTimeout 600
  IdleScanInterval 120
  BusyTimeout 300
  BusyScanInterval 120
  ErrorScanInterval 3
  ZombieScanInterval 3
  ProcessLifeTime 900
  SpawnScoreUpLimit 10
  SpawnScore 1  
  TerminationScore 2  
  MaxProcessCount 200
  DefaultMaxClassProcessCount 10  
  DefaultMinClassProcessCount 1
  IPCConnectTimeout 900
  IPCCommTimeout 900
  MaxRequestsPerProcess 500  
</IfModule>

My own tests show that I can set "DefaultMinClassProcessCount 0" without major drawbacks (php websites that are almost never accessed take a bit longer to load, but nothing really annoying), and the memory usage on the server decreases notably.

Admins out there: what do you think about making my prosoed changes new defaults? Any objections?
08-24-2009 04:21 PM
Visit this user's website Find all posts by this user Quote this message in a reply
Post Reply 


Messages In This Thread
Default fcgid configuration is wrong... - kilburn - 08-24-2009 04:21 PM
RE: Default fcgid configuration is wrong... - Nuxwin - 10-19-2010, 06:12 PM

Forum Jump:


User(s) browsing this thread: 1 Guest(s)