提高asp.net的请求队列限制 [英] Increase request queue limit of asp.net

查看:1372
本文介绍了提高asp.net的请求队列限制的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

不知道如果我的标题是技术上是正确的,但我有一个问题。

Not sure if my title is technically correct but I have a problem.

我有IIS 8 asp.net 4.5网站,使用asp.net来控制/限制文件下载。
与其让IIS服务器大(10-20MB)静态文件,如拉链我使用asp.net。

I have a asp.net 4.5 site on IIS 8 and use asp.net to control/limit file downloads. Instead of letting IIS to server large (10-20MB) static files such as zip I use asp.net.

直到大约500到700个用户开始下载它工作正常。之后asp.net开始排队的所有请求到域,直到活动请求计数低于某种pre确定数量。

It works fine until around 500 to 700 users start downloading. After that asp.net starts to queue all the request to the domain until the active request count goes below some sort of pre determined number.

静态内容如HTML不受影响。如果我让多个工作进程它处理更多的请求,但是带来管理会话状态的问题。

Static content such as html isn't affected. If I enable more than one worker processes it handles more requests but that brings issue of managing session state.

有没有排队问题,如果我让IIS提供文件。
有什么办法提高asp.net的队列长度?

There is no queue issue if I let IIS serve files. Is there any way increasing queue length of asp.net?

推荐答案

您可以修改每个CPU允许的请求队列限制和最大并发线程

You can modify the request queue limit and the maximum concurrent threads allowed per CPU

<system.web> 
  <applicationPool 
       maxConcurrentRequestsPerCPU="12" 
       maxConcurrentThreadsPerCPU="0" 
       requestQueueLimit="5000"/> 
</system.web>

<一个href=\"http://blogs.msdn.com/b/rakkimk/archive/2009/07/08/iis7-improving-asp-net-performance-concurrent-requests-while-on-integrated-mode.aspx\" rel=\"nofollow\">http://blogs.msdn.com/b/rakkimk/archive/2009/07/08/iis7-improving-asp-net-performance-concurrent-requests-while-on-integrated-mode.aspx

不过,我会建议通过CDN提供更大的静态文件,如果在您的情况是可能的。默认的限制是到位的一个原因。如果您解除配置的值太远默认值以上,你可能会开始遇到性能问题和运行时错误。

However, I would suggest serving larger static files via a CDN if that is possible in your situation. The default limits are in place for a reason. If you lift the configured values too far above the defaults, you may start to experience performance issues and runtime errors.

Amazon的S3 CDN(也可能是其他CDN的)提供一系列的选项来控制文件访问的CDN

Amazon's S3 CDN (and probably other CDN's) provide a range of options to control access to files on the CDN

使您能够利用细粒度访问控制的IAM用户策略提供,同时也降低了你的曝光,使您能够进一步限制,限制的要求,为用户的每一个predefined时间。

enables you to leverage the fine grained access control that IAM User policies provides while also reducing your exposure by enabling you to further restrict and limit the request to a predefined time for each one of your users.

http://aws.amazon.com/articles/5050/

这篇关于提高asp.net的请求队列限制的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆