我如何检查Asp.Net请求管道? [英] How do I inspect the Asp.Net request pipeline?

查看:135
本文介绍了我如何检查Asp.Net请求管道?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当我衡量一个Asp.Net应用程序里面的请求次数,并将其与上应用的外时序,我得到不同的价值观 - 1000-5000ms奇怪的开销不时。

When I measure request times on "the inside" of an Asp.Net application and compare it to timings on "the outside" of the app, I get different values -- 1000-5000ms strange overheads from time to time.

也许请求在IIS面前beeing排队?

Maybe the requests are beeing queued up in front of IIS?

或者一些奇怪的事情在一个HttpModule?

Or something strange is going on in an HttpModule?

问题:有没有一种方法来检查请求管道追查究竟在何处应用程序被打之前的时间都花在

The question: Is there a way to inspect the request pipeline for tracing exactly where the time is spent before the app is hit?

推荐答案

您可以创建自己的模块,并把它注册在上面追查更精确每个请求,但该措施将开始,一旦IIS将请求委托给ASP .NET ISAPI模块。为了得到更准确,你可以去IIS日志。

You can create your own module and register it on top to trace every request with more accuracy, but the measure will start once the IIS delegates the request to the ASP.NET ISAPI module. To get more accuracy you can go to IIS logs.

这篇关于我如何检查Asp.Net请求管道?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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