iis php 线程池,在 IIS 上指定每个处理器的线程数

在 IIS 上指定每个处理器的线程数Specifying threads per processor on IIS

09/18/2015

本文内容

适用于:Access 2013、Office 2013Applies to: Access 2013, Office 2013

在将 RDS 与 Internet 信息服务4.0 或更高版本一起使用时, 可以通过操作 web 服务器上的注册表来控制为每个处理器创建的线程数。When using RDS with Internet Information Services 4.0 or later, the number of threads created per processor can be controlled by manipulating the registry on the web server. 在高通讯量或者通讯量虽小但查询较大的情况下,每处理器的线程数可能会影响性能。The number of threads per processor can affect performance in a high traffic situation, or in low traffic situations with large query sizes. 用户应进行试验以获得最佳效果。The user should experiment for best results.

用来确定和更改此设置默认值的方法取决于 IIS 4.0 服务器的配置。The method used to determine and change the default value for this setting depends upon the configuration of the IIS 4.0 server.

如果 IIS 服务器上装有 MDAC 2.1.2.4202.3 (GA) 或更高版本,RDS 将与 ASP 脚本使用相同的组件服务(如果您使用的是 Windows NT,则为 Microsoft Transaction Services)线程池。每处理器线程数的默认值是 10。若要更改该默认值,必须向服务器注册表中添加以下注册表项:With MDAC 2.1.2.4202.3 (GA) or later installed on the IIS server, RDS uses the same Component Services (or Microsoft Transaction Services, if you are using Windows NT) thread pool as ASP scripts use. The default value for the number of threads per processor is 10. To change the default, you must add the following key to the server registry:

HKEY_LOCAL_MACHINE\System\CurrentControlSet\Services\InetInfo\Parameters\MaxPoolThreads

其中, MaxPoolThreads是 REG_DWORD。where MaxPoolThreads is a REG_DWORD. 除非特意添加,否则 MaxPoolThreads 不出现在注册表中。MaxPoolThreads does not appear in the Registry unless it is specifically added. 有效值的范围是从 5 到建议的最大值 20。Valid values range from 5 to a recommended maximum of 20. 如果注册表项指定的值大于 PoolThreadLimit 项(位于同一路径下)的值,则使用 PoolThreadLimit 值。If the value specified by the registry key is greater than the value of the PoolThreadLimit key (located under the same path), then PoolThreadLimit value is used.

或者,如果在 IIS 服务器上装有 MDAC 2.1 2.1.1.3711.11 (GA) 或更低版本,则每处理器线程数的默认值为 6。若要更改该默认值,则必须向 IIS 服务器上的注册表中添加以下注册表项:Alternatively, if MDAC 2.1 2.1.1.3711.11 (GA) or earlier is installed on the IIS server, the default value for the number of threads per processor is 6. To change the default, you must add the following key to the registry on the IIS server:

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W3SVC\Parameters\ADCThreads

其中, ADCThreads是 REG_DWORD。where ADCThreads is a REG_DWORD. 除非特意添加,否则 ADCThreads 将不出现在注册表中。ADCThreads does not appear in the Registry unless it is specifically added. 有效值的范围是从 1 到 50。The range of valid values is 1 to 50. 如果由注册表项指定的值大于 50,则将使用最大值 (50)。If the value specified by the registry key is greater than 50, then the maximum value is used (50).

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值