2010年6月8日 星期二

解決 ASP.NET 於 IIS 7.0 中執行效能有時會異常緩慢無回應之現象

詳細原因請看這

簡單的說就是在 aspnet.config 修改為
<applicationPool maxConcurrentRequestsPerCPU="5000" maxConcurrentThreadsPerCPU="0" requestQueueLimit="5000"/>
以上僅針對 .NET 3.5 SP1 才有這個設定可以調整

若為 .NET 2.0 則需要在 REGISTRY 的 HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\ASP.NET\2.0.50727.0 加入 DWORD MaxConcurrentRequestsPerCPU 並設定值為 5000

若為 .NET 4.0 則預設值就已經是 5000 不必再調整

沒有留言:

自訂權限驗證機制

// 使用 filter [Route("api/[controller]")] [ApiController] [Authorize] [TypeFilter(typeof(CustomAsyncAuthorizationFilter))] public c...