diff options
author | Dmitry Stogov <dmitry@php.net> | 2006-07-24 12:15:07 +0000 |
---|---|---|
committer | Dmitry Stogov <dmitry@php.net> | 2006-07-24 12:15:07 +0000 |
commit | b9ba07f7a03ffc7ef48817eff8f11b8982e174fc (patch) | |
tree | 5404ca33f6b1309a1cf26c04794830aafeb1eecc | |
parent | 3b7386acea88bd69692e8b88fd8e50ebaea39925 (diff) | |
download | php-git-b9ba07f7a03ffc7ef48817eff8f11b8982e174fc.tar.gz |
Documentation fix
-rw-r--r-- | sapi/cgi/README.FastCGI | 21 |
1 files changed, 13 insertions, 8 deletions
diff --git a/sapi/cgi/README.FastCGI b/sapi/cgi/README.FastCGI index f51ae5686b..3dda295d84 100644 --- a/sapi/cgi/README.FastCGI +++ b/sapi/cgi/README.FastCGI @@ -126,17 +126,22 @@ There are a few tuning parameters that can be tweaked to control the performance of FastCGI PHP. The following are environment variables that can be set before running the PHP binary: -PHP_FCGI_CHILDREN (default value: 8) +PHP_FCGI_CHILDREN (default value: 0) This controls how many child processes the PHP process spawns. When the fastcgi starts, it creates a number of child processes which handle one -page request at a time. So by default, you will be able to handle 8 -concurrent PHP page requests. Further requests will be queued. -Increasing this number will allow for better concurrency, especially if you -have pages that take a significant time to create, or supply a lot of data -(e.g. downloading huge files via PHP). On the other hand, having more -processes running will use more RAM, and letting too many PHP pages be -generated concurrently will mean that each request will be slow. +page request at a time. Value 0 means that PHP willnot start additional +processes and main process will handle FastCGI requests by itself. Note that +this process may die (because of PHP_FCGI_MAX_REQUESTS) and it willnot +respawned automatic. Values 1 and above force PHP start additioanl processes +those will handle requests. The main process will restart children in case of +their death. So by default, you will be able to handle 1 concurrent PHP page +requests. Further requests will be queued. Increasing this number will allow +for better concurrency, especially if you have pages that take a significant +time to create, or supply a lot of data (e.g. downloading huge files via PHP). +On the other hand, having more processes running will use more RAM, and letting +too many PHP pages be generated concurrently will mean that each request will +be slow. PHP_FCGI_MAX_REQUESTS (default value: 500) |