監測ASP.NET應用程序性能有很多種方法,你心目最簡單的方法是什么?
我目前找到的最簡單的方法是:在Windows性能監視器(Performact Monitor)中監測ASP.NET Applications的Request Execution Time參數。
微軟網站上對Request Execution Time的解釋:
This counter shows the time, in milliseconds, that it takes to render the last requested page and then transmit it to the user. This counter will generally be greater than the time a trace shows to render the page. This counter is a more comprehensive measurement of start-to-finish request time. If this counter shows a lower average when compared to a baseline, then both the scalability and the performance of the application have been increased.
我對Request Execution Time的理解是:ASP.NET Runtime接收到IIS轉發過來的用戶請求->ASP.NET Runtime將該請求的響應內容發送給IIS所消耗的時間。
在Windows性能監視器中添加Request Execution Time計數器的操作步驟:
1. 打開Windows性能監視器,點擊加號按鈕。
2. 找到ASP.NET Applications
3. 找到Request Execution Time
4. 選擇要監測的ASP.NET站點
LM_W3SVC_2_ROOT表示ID為2的IIS站點,站點ID可以在IIS的站點列表中查看到。
5. 點擊Add
6. 點擊OK
如果你有更簡單的方法,期待你的分享。