ASP.NET: Monitor application performance

后端 未结 4 409
时光说笑
时光说笑 2021-02-04 22:01

I have an ASP.NET application which will be running in a web server (Windows Server 2003) for serving my intranet users. Now i would like to monitor the performance of the appli

4条回答
  •  长情又很酷
    2021-02-04 22:12

    Besides the accepted answer, sometimes performance counters and IIS logs are not enough to track down large and complex monolith applications. In which case, stack information could be helpful. Perfview can help you with this and it's open source.

    Say for instance you want to track down .NET stack information and stop whenever a web request takes more than 3 seconds. You would then run the following command at the prompt

    perfview collect -StopOnRequestOverMsec:3000 -ThreadTime -NoNGenRundown -Merge:false -Zip:false -LogFile:perfviewlog.log -CircularMB:512 -DataFile:LongRequest.etl
    

    Then use perfview to analyze the LongRequest.etl file and track down the .NET call in question. See more at Microsoft's Channel9.

提交回复
热议问题