使用性能監控工具-Perfmon監控windows服務器性能

 

<!-- /* Font Definitions */ @font-face {font-family:宋體; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-alt:SimSun; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} @font-face {font-family:"/@宋體"; panose-1:2 1 6 0 3 1 1 1 1 1; mso-font-charset:134; mso-generic-font-family:auto; mso-font-pitch:variable; mso-font-signature:3 135135232 16 0 262145 0;} /* Style Definitions */ p.MsoNormal, li.MsoNormal, div.MsoNormal {mso-style-parent:""; margin:0cm; margin-bottom:.0001pt; text-align:justify; text-justify:inter-ideograph; mso-pagination:none; font-size:10.5pt; mso-bidi-font-size:12.0pt; font-family:"Times New Roman"; mso-fareast-font-family:宋體; mso-font-kerning:1.0pt;} h3 {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; mso-outline-level:3; font-size:13.5pt; font-family:宋體; mso-bidi-font-family:宋體; font-weight:bold;} a:link, span.MsoHyperlink {color:blue; text-decoration:underline; text-underline:single;} a:visited, span.MsoHyperlinkFollowed {color:purple; text-decoration:underline; text-underline:single;} p {mso-margin-top-alt:auto; margin-right:0cm; mso-margin-bottom-alt:auto; margin-left:0cm; mso-pagination:widow-orphan; font-size:12.0pt; font-family:宋體; mso-bidi-font-family:宋體;} /* Page Definitions */ @page {mso-page-border-surround-header:no; mso-page-border-surround-footer:no;} @page Section1 {size:612.0pt 792.0pt; margin:72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin:36.0pt; mso-footer-margin:36.0pt; mso-paper-source:0;} div.Section1 {page:Section1;} -->

核桃博客 轉載,http://www.hetaoblog.com/?p=68

使用性能監控工具-Perfmon監控windows服務器性能

 

之前在覈桃博客中提到了性能測試工具,例如網站性能測試工具Apache Benchmark的使用說明使用性能測試工具JMeter來測試網站性能1 等,也有提到性能優化的一些做法,比如網站性能優化實踐-for循環中的數據庫操作 ,今天,介紹網站性能的另外一個方面,性能監控。對於某個細節的性能優化,只要就事論事分析該細節就可以。但是對於網站整體的性能優化,必須建立在有數據的性能監控之上,否則優化無從下手。
Perfmon是windows自帶的一個性能工具,主要可以提供操作系統的一些基本數據,比如內存、CPU、IO、網絡相關的信息,同時提供圖形化報表,日誌、跟蹤和警報等功能。這裏介紹其使用基本方法.
在命令行下輸入perfmon,就可以看到如下界面:

在默認情況下,該工具已經對內存的Pages/sec,硬盤的Avg Disk Queue Length和CPU的%Processor Time做了監控,將數據和圖形分別顯示在界面上。
1. Page/sec表示每秒從磁盤讀取/寫入的頁文件之和;頁文件是指存儲在磁盤上的虛擬內存文件;這個參數越高,說明系統通過文件來交換虛擬內存越多,考慮加內存。
2. Avg Disk Queue Length反應系統的硬盤IO操作的頻率,該參數越高,說明系統的IO瓶頸越大;
3. %Processor Time表示系統使用了多少時間在cpu上,如果該參數越高,說明系統的CPU使用率太高,後續的優化應該重點考慮減少CPU密集型的操作。
Perfmon還具有其他有用功能
a.添加參數:點擊圖形界面上的+符號,可以添加其他自己感興趣的參數;
b.啓用日誌:點擊計數器日誌,然後右鍵點擊日誌文件,啓用,可以啓用日誌,將記錄的參數記錄到日誌文件,然後下次可以在圖標上點擊第4個圖標,查看日誌數據,就可以選擇將記錄在日誌中的數據顯示在圖形界面上;
c.警報:點擊警報可以啓用警報功能,比如某項參數超過某個值,執行相關的腳本或程序;

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章