国产一级a片免费看高清,亚洲熟女中文字幕在线视频,黄三级高清在线播放,免费黄色视频在线看

打開APP
userphoto
未登錄

開通VIP,暢享免費(fèi)電子書等14項(xiàng)超值服

開通VIP
支持高并發(fā)的IIS Web服務(wù)器常用設(shè)置

適用的IIS版本:IIS 7.0, IIS 7.5, IIS 8.0

適用的Windows版本:Windows Server 2008, Windows Server 2008 R2, Windows Server 2012

1、應(yīng)用程序池(Application Pool)的設(shè)置: 

  • General->Queue Length設(shè)置為65535(隊(duì)列長度所支持的最大值)
  • Process Model->Idle Time-out設(shè)置為0(不讓應(yīng)用程序池因?yàn)闆]有請(qǐng)求而回收)
  • Recycling->Regular Time Interval設(shè)置為0(禁用應(yīng)用程序池定期自動(dòng)回收)

2、.Net Framework相關(guān)設(shè)置

a) 在machine.config中將

<processModel autoConfig="true" />

改為

<processModel enable="true" requestQueueLimit="100000"/>

(保存后該設(shè)置立即生效)

b) 打開C:\Windows\Microsoft.NET\Framework64\v4.0.30319\Config\Browsers\Default.browser,找到<defaultBrowser id="Wml" parentID="Default" >,注釋<capabilities>部分,然后運(yùn)行在命令行中運(yùn)行aspnet_regbrowsers -i。

<defaultBrowser id="Wml" parentID="Default" >    <identification>        <header name="Accept" match="text/vnd\.wap\.wml|text/hdml" />        <header name="Accept" nonMatch="application/xhtml\+xml; profile|application/vnd\.wap\.xhtml\+xml" />    </identification><!--    <capabilities>        <capability name="preferredRenderingMime"              value="text/vnd.wap.wml" />        <capability name="preferredRenderingType"              value="wml11" />    </capabilities>--></defaultBrowser>

以解決text/vnd.wap.wml問題。

3、IIS的applicationHost.config設(shè)置

設(shè)置命令:

c:\windows\system32\inetsrv\appcmd.exe set config /section:serverRuntime /appConcurrentRequestLimit:100000

設(shè)置結(jié)果:

<serverRuntime appConcurrentRequestLimit="100000" />

(保存后該設(shè)置立即生效)

4、http.sys的設(shè)置

注冊(cè)表設(shè)置命令1(將最大連接數(shù)設(shè)置為10萬):

reg add HKLM\System\CurrentControlSet\Services\HTTP\Parameters /v MaxConnections /t REG_DWORD /d 100000

注冊(cè)表設(shè)置命令2(解決Bad Request - Request Too Long問題):

reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP\Parameters /v MaxFieldLength /t REG_DWORD /d 32768reg add HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\HTTP\Parameters /v MaxRequestBytes /t REG_DWORD /d 32768

(需要在命令行運(yùn)行 net stop http  & net start http & iisreset 使設(shè)置生效)

5、針對(duì)負(fù)載均衡場(chǎng)景的設(shè)置

在Url Rewrite Module中增加如下的規(guī)則:

<rewrite>    <allowedServerVariables>        <add name="REMOTE_ADDR" />    </allowedServerVariables>    <globalRules>        <rule name="HTTP_X_Forwarded_For-to-REMOTE_ADDR" enabled="true">            <match url=".*" />            <serverVariables>                <set name="REMOTE_ADDR" value="{HTTP_X_Forwarded_For}" />            </serverVariables>            <action type="None" />            <conditions>                <add input="{HTTP_X_Forwarded_For}" pattern="^$" negate="true" />            </conditions>        </rule>    </globalRules></rewrite>

相關(guān)博文:遷入阿里云后遇到的Request.UserHostAddress記錄IP地址問題

注意事項(xiàng):添加該URL重寫規(guī)則會(huì)造成IIS內(nèi)核模式緩存不工作,詳見微軟的坑:Url重寫竟然會(huì)引起IIS內(nèi)核模式緩存不工作。

6、 設(shè)置Cache-Control為public

在web.config中添加如下配置: 

<configuration>    <system.webServer>        <staticContent>            <clientCache cacheControlCustom="public" />        </staticContent>    </system.webServer></configuration>

7、ASP.NET線程設(shè)置

在machine.config的<processModel>中添加如下設(shè)置: 

<processModel enable="true" maxWorkerThreads="100" maxIoThreads="100" minWorkerThreads="50" minIoThreads="50"/>

相關(guān)博文:云計(jì)算之路-阿里云上:從ASP.NET線程角度對(duì)“黑色30秒”問題的全新分析

 

相關(guān)鏈接:

讓W(xué)indows Server 2008 + IIS 7+ ASP.NET 支持10萬并發(fā)請(qǐng)求

本站僅提供存儲(chǔ)服務(wù),所有內(nèi)容均由用戶發(fā)布,如發(fā)現(xiàn)有害或侵權(quán)內(nèi)容,請(qǐng)點(diǎn)擊舉報(bào)。
打開APP,閱讀全文并永久保存 查看更多類似文章
猜你喜歡
類似文章
優(yōu)化IIS7.5支持10萬個(gè)同時(shí)請(qǐng)求的配置方法
ASP.NET 中的進(jìn)程和請(qǐng)求標(biāo)識(shí)
通過系統(tǒng)配置來提高ASP.NET應(yīng)用程序的穩(wěn)定性 @阿良.NET
讓服務(wù)器能支持10萬并發(fā)數(shù)秘訣,親身經(jīng)歷,站在巨人的肩膀上創(chuàng)造
mantis安裝與配置(Windows Mysql PHP IIS) - seventest - 51Testing軟件測(cè)試網(wǎng) - Powered by X-Space
windows server 2008下安裝SQL SERVER 2005出現(xiàn)IIS功能要求警告解決方案
更多類似文章 >>
生活服務(wù)
分享 收藏 導(dǎo)長圖 關(guān)注 下載文章
綁定賬號(hào)成功
后續(xù)可登錄賬號(hào)暢享VIP特權(quán)!
如果VIP功能使用有故障,
可點(diǎn)擊這里聯(lián)系客服!

聯(lián)系客服