收集windows系統效能統計資料

2021-06-25 07:09:25 字數 1621 閱讀 9244

在cmd視窗輸入 

typeperf "\processor(_total)\% privileged time" "\processor(_total)\% user

time"

也可以將下面的三個命令寫到c:\cpu-util.txt裡。

\processor(_total)\% user time

\processor(_total)\% privileged time

\processor(_total)\% processor time

然後在命令列裡執行 

typeperf -cf cpu-util.txt
"(pdh-csv 4.0)","\\3-pc\processor(_total)\% user time","\\3-

"08/29/2014 16:49:15.101","1.947951","1.558362","3.771113"

"08/29/2014 16:49:16.102","0.389598","2.337539","2.991947"

"08/29/2014 16:49:17.103","0.779176","2.727137","3.771113"

"08/29/2014 16:49:18.104","1.558362","2.727137","4.550309"

"08/29/2014 16:49:19.105","0.389588","3.895901","2.991937"

"08/29/2014 16:49:20.116","1.542948","1.928693","4.722945"

"08/29/2014 16:49:21.118","0.778409","2.724405","2.310347"

"08/29/2014 16:49:22.120","1.946006","4.281222","6.591569"

"08/29/2014 16:49:23.123","0.000000","1.553706","2.116522"

"08/29/2014 16:49:24.125","0.389588","3.116725","3.771123"

"08/29/2014 16:49:25.126","0.389209","0.778409","0.000000"

"08/29/2014 16:49:26.128","0.779176","2.727127","3.771123"

"08/29/2014 16:49:27.129","1.558362","1.558362","3.381525"

第一行是資料的報頭。 typeperf報告間隔為1秒。 

該報告間隔可以使用-si選項被改變。 -si選項接受 

形式[mm:] ss其中mm:是可選分鐘,ss是秒數。

如:

typeperf -cf c:\cpu-util.txt -si ss:5

nt_command_typeperf.mspx?mfr=true

優化系統效能

程式框架 hibernate3 struts2 spring2 資料庫 sqlserver2008 伺服器 tomcat6 優化方法 1 配置連線池 採用的c3p0連線池 2 在程式中獲取列表時,用iterator代替list 3 在查詢之後可以使用session.clear 方法釋放快取 4 用資...

系統效能分析

當系統變慢時候,我們首先關注的可能是cpu的指標,有時候發現cpu使用率一點都不高,但是系統還是卡,這時可能就需要關心另外乙個影響效能的東西 磁碟的io效能。通過top命令中的 wa可以獲取系統當前的io狀態,如果該值居高不小,那磁碟的io可能就有問題了。另外可以通過iotop命令來詳細了解什麼程式...

系統效能分析

系統的整體效能取決於各種資源的平衡,類似木桶理論,某種資源的耗盡會嚴重阻礙系統的效能。linux中需要監控的資源主要有 cpu 主存 記憶體 硬碟空間 i o時間 網路時間 應用程式等。統效能的主要因素有 因素 說明使用者態cpu cpu在使用者態執行使用者程式所花費的時間,包括庫呼叫,但是不包括核...