<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sonic Cube &#187; iis</title>
	<atom:link href="http://soniccube.net/tag/iis/feed" rel="self" type="application/rss+xml" />
	<link>http://soniccube.net</link>
	<description>On The Road ...</description>
	<lastBuildDate>Sun, 14 Jun 2009 10:54:37 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.2</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Windows Server下IIS+PHP+FastCGI的简单优化</title>
		<link>http://soniccube.net/2009/06/14/iis-php-fastcgi-optimize</link>
		<comments>http://soniccube.net/2009/06/14/iis-php-fastcgi-optimize#comments</comments>
		<pubDate>Sun, 14 Jun 2009 10:54:37 +0000</pubDate>
		<dc:creator>Sonic</dc:creator>
				<category><![CDATA[Server]]></category>
		<category><![CDATA[fastcgi]]></category>
		<category><![CDATA[iis]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[优化]]></category>

		<guid isPermaLink="false">http://soniccube.net/?p=10</guid>
		<description><![CDATA[前两天因为一台linux的机器硬盘挂掉了,所以临时找了台Server 2003先顶了一下&#8230;
因为FastCGI的性能提高不少,所以也尝试了一下让IIS用FastCGI的方式执行PHP.简单做了一点优化,效果还是比较满意的.
所有操作在IIS6下测试,未测试IIS7.
用文本编辑器打开C:\WINDOWS\system32\inetsrv\fcgiext.ini,找到[PHP]部分.主要的属性有以下几个:
MaxInstances=10
MaxInstances定义了IIS可以发起的最大cgi进程数,默认值为10,该数值对大多数需要用到独立服务器的网站来说是不够的.具体修改的数值,建议根据系统资源决定,一般情况下,正常工作状态的php-cgi进程需要占用20M内存.
QueueLength=n
一个cgi进程最大处理队列值,默认1000
IdleTimeout=n
php-cgi进程的允许空闲时间,默认300s,超过该时间cgi进程退出
InstanceMaxRequests=n
每个cgi进程允许处理的请求次数,达到该数值cgi进程将重启.
]]></description>
			<content:encoded><![CDATA[<p>前两天因为一台linux的机器硬盘挂掉了,所以临时找了台Server 2003先顶了一下&#8230;</p>
<p>因为FastCGI的性能提高不少,所以也尝试了一下让IIS用FastCGI的方式执行PHP.简单做了一点优化,效果还是比较满意的.</p>
<p>所有操作在IIS6下测试,未测试IIS7.</p>
<p>用文本编辑器打开C:\WINDOWS\system32\inetsrv\fcgiext.ini,找到[PHP]部分.主要的属性有以下几个:</p>
<p>MaxInstances=10<br />
MaxInstances定义了IIS可以发起的最大cgi进程数,默认值为10,该数值对大多数需要用到独立服务器的网站来说是不够的.具体修改的数值,建议根据系统资源决定,一般情况下,正常工作状态的php-cgi进程需要占用20M内存.</p>
<p>QueueLength=n<br />
一个cgi进程最大处理队列值,默认1000</p>
<p>IdleTimeout=n<br />
php-cgi进程的允许空闲时间,默认300s,超过该时间cgi进程退出</p>
<p>InstanceMaxRequests=n<br />
每个cgi进程允许处理的请求次数,达到该数值cgi进程将重启.</p>
]]></content:encoded>
			<wfw:commentRss>http://soniccube.net/2009/06/14/iis-php-fastcgi-optimize/feed</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
	</channel>
</rss>
