Log Request time in IIS

倾然丶 夕夏残阳落幕 提交于 2020-01-05 07:59:09

问题


I am running on a performance issue with ASP.Net 2.0 Application.

A page takes atmost 20+ secs to load in a browser.

I would like to know where the problem is occurring, i.e in browser(rendering) or in server(processing).

Is there a way to log the time taken for each request in IIS 7.5?

Do we need any code in global.asax or filter that do this stuff? I read about integrating MiniProfiler from http://miniprofiler.com/

Not sure will this work for ASP.Net 2.0 web application.

Any suggestion or help?


回答1:


There are several way to profile your code. I suggest you the following ways:

  1. CLR Profiler (Application by microsoft to see the time spent by each function, allocution memory etc ...) for asp and .Net applications

    How use clr profiler

    Download Clr profiler from microsoft

  2. Internet Explorer debug mode

    Simply with the debug window. By pressing "F12" for "Internet Explorer" and then in the onge "Network", click on "start capture". You can see the call to the function / script with time for each call. With exceptions.



来源:https://stackoverflow.com/questions/16142294/log-request-time-in-iis

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!