如何增加线程池中的线程上的IIS 7.0 [英] How to increase thread-pool threads on IIS 7.0
问题描述
环境:Windows Server 2008企业版,IIS 7.0,ASP.NET 2.0(CLR),.NET 4.0
我有没有一个页面 ASP.NET
应用程序,无会话(的HttpHandler
)。它流服务器。我用两个线程用于处理每个请求,所以如果有100个连接的客户端,则使用200个线程。这是一个专门的服务器,并有在服务器上没有更多的应用。
I have an ASP.NET
application with no page and no session(HttpHandler
). It a streaming server. I use two threads for processing each request so if there are 100 connected clients, then 200 threads are used. This is a dedicated server and there's no more application on the server.
问题是后200客户端连接(在压力测试)应用程序拒绝新客户,但如果我增加应用程序池的工作线程
(创建一个web园)那么我可以为每个 W3WP 200个新客户快乐
的过程。
The problem is after 200 clients are connected (under stress testing) application refuses new clients, but if I increase the worker threads of application pool
(create a web garden) then I can have 200 new happy clients per w3wp
process.
我觉得.NET线程池限制达到在这一点上,需要增加它。
I feel .NET thread pool limit reaches at that point and need to increase it.
感谢
推荐答案
看的 applicationPool
您aspnet.config的元素:
Look at the applicationPool
element of your aspnet.config:
<configuration>
<system.web>
<applicationPool
maxConcurrentRequestsPerCPU="5000"
maxConcurrentThreadsPerCPU="0"
requestQueueLimit="5000" />
</system.web>
</configuration>
一个例子位置是:
An example location is:
C:\Windows\Microsoft.NET\Framework64\v4.0.30319\aspnet.config
您可能也想看看 中processModel
(在machine.config中)。
You may also want to look at processModel
(in your machine.config).
这篇关于如何增加线程池中的线程上的IIS 7.0的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!