从IIS缓慢的响应时间 [英] Slow response times from IIS

查看:915
本文介绍了从IIS缓慢的响应时间的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

这也许不属于计算器(?)

Maybe this doesn't belong to stackoverflow (?)

我有IIS7运行ASP.NET经典网站web表单。
问题是,在偶数静态资源的响应时间是可怕的慢。
供应250K css文件需要2+秒,在某些情况下。

I have a classic ASP.NET webforms site running on IIS7. The problem is that response times on even static resources are horribly slow. Serving a 250k css file takes 2+ seconds in some cases.

还有包含JSON数据用于测试目的的静态文本文件。
此文件大约需要10-20ms得到,如果我手动请求该文件。
如果同一个文件是从网页(JQuery的ajax调用)要求相同的文件需要300毫秒来获取,并根据萤火虫,其所有的服务器的等待时间。

There is also a static textfile containing json data for testing purposes. This file takes about 10-20ms to get if I request that file manually. If the same file is requested from the webpage (JQuery ajax call) the same file takes 300ms to fetch , and according to firebug, its all server wait time.

是不是ASP.NET,做当文件供应一些时髦的东西吗?
任何想法可能会导致这种奇怪的行为?

Is it ASP.NET that does some funky stuff when the files are served? Any ideas what can cause this kind of odd behavior?

(本地运行相同的部位在vs.net devserver不显示同样的问题)

(running the same site locally in the vs.net devserver does not show the same problem)


有些更新

文本文件已经查询字符串PARAMS避免本地缓存。
每个查询字符串参数的变化,它需要300毫秒的时间来加载。
请求使用相同的PARAMS同一个文件需要下来为20ms(两者萤火和webinspector说文件加载过网,而不是从本地缓存收到)

The textfile has querystring params to avoid local cache. each time the query string param changes, it takes 300ms to load. requesting the same file using the same params takes it down to 20ms (and both firebug and webinspector says the file is loaded over the net and not received from local cache)

这是什么原因?

静态图像也表现得出奇,甚至W / O的查询字符串PARAMS。
的jQuery加载图像需要3-400毫秒..请求相同的图像手动20ms的花费(W​​ / O任何高速缓存)

Static images also behave strangely even w/o any querystring params. Images loaded by jquery takes 3-400 ms .. requesting the same images manually takes 20ms (w/o any cache)

推荐答案

开始本

启用HTTP的COM $ P $的pssion静态内容(IIS 7)

调整IIS 7对静态内容

这篇关于从IIS缓慢的响应时间的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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