IIS Configuration Optimization
Tuning FastCGI Configuration for IIS6
Note:
These performance enhancements are defined by default
when you install Zend Server.
By default, Zend Server
runs with a maximum of ten concurrent PHP instances. For high load Web
servers, it is recommended to increase this value, based on your performance
requirements and other hardware/software limitations (such as memory,
CPU, etc.).
|
|
|
|

|
To control the maximum amount of concurrent
PHP instances:
Go to C:\WINDOWS\system32\inetsrv\fcgiext.ini.
Locate the entry for "php" under Types.
Locate the section corresponding to this entry (usually
under "[PHP]").
Append the following line at the end of this section:
MaxInstances=10
|
|
This will enable Zend Server
to run ten PHP instances, for high loads. If you have lots of memory and
high loads, you can increase this value even more. |
|
|
|
|

|
To control the amount of requests handled
by a single PHP instance before recycling:
Go to C:\WINDOWS\system32\inetsrv\fcgiext.ini.
Locate the entry for "php" under Types.
Locate the section corresponding to this entry (usually
under "[PHP]").
Append the following line at the end of this section:
InstanceMaxRequests=10000
|
|
This will allow a single PHP instance to handle 10,000 requests, instead
of the default 1,000.
If you set this number higher, make sure you increase the value of PHP_FCGI_MAX_REQUESTS located in the
same file accordingly. |
Tuning FastCGI Configuration for IIS7
Note:
These performance enhancements are defined by default
when installing Zend Server.
By default, Zend Server
runs with a maximum of ten concurrent PHP instances. For high load Web
servers, it is recommended to increase this value, based on your performance
requirements and other hardware/software limitations (such as memory,
CPU, etc.).
Requirements: IIS7 Resource
Kit -
(x86) http://www.iis.net/downloads/default.aspx?tabid=34&i=1682&g=6
(x64) http://www.iis.net/downloads/default.aspx?tabid=34&i=1683&g=6
Once installed, you can administer your FastCGi settings from the Internet
Information Services (IIS) Manager.
From here, you can configure your MaxInstances
and InstanceMaxRequests.
|
|
|
|

|
To tune FastCGi configuration for IIS7:
Go to Start | All Programs
| Administrative Tools | Internet Information Services 7 - Application
Server Manager.
Select the server to manage from the left tree.
Click and select <install_dir>\bin\php-cgi.exe.
In the Actions section (on the right), click "Add
Application..."
The Add FastCGI Application dialog opens:
.
Tweak the variables as necessary.
The recommended Zend default is MaxInstances=10
and InstanceMaxRequests=10000.
|
|
Depending on which settings you change, the Web server's memory and
CPU consumption are adjusted. |