Windows-Server-2003
typeperf.exe 間歇性返回 -1
編輯:2012 年 9 月 26 日 - 我正在更新這個問題及其標籤,因為我現在在伺服器 2k8R2 VM 上再次遇到了這個錯誤。儘管如此,網上似乎沒有關於此的權威資訊,所以如果我解決了這個問題,這個頁面可能會成為其他有同樣問題的人的寶貴資源。
我已經Google了這個地獄,找不到答案。
我有一個 Windows Server 2003 虛擬機。我在伺服器上執行以下命令:
typeperf "\Processor(*)\% Processor Time"
這是輸出:
"(PDH-CSV 4.0)","\\SERVER01\\Processor(0)\% Processor Time","\\SERVER01\Processor(_Total)\% Processor Time" "03/30/2012 11:40:13.881","0.000000","0.000000" "03/30/2012 11:40:14.795","22.374429","22.374429" "03/30/2012 11:40:15.807","-1","-1" "03/30/2012 11:40:16.707","0.000000","0.000000" "03/30/2012 11:40:17.607","18.402778","18.402778" "03/30/2012 11:40:18.507","0.000000","0.000000" "03/30/2012 11:40:19.407","-1","-1" "03/30/2012 11:40:20.307","-1","-1" "03/30/2012 11:40:21.207","-1","-1" "03/30/2012 11:40:22.107","-1","-1" "03/30/2012 11:40:23.007","-1","-1" "03/30/2012 11:40:23.907","0.000000","0.000000" "03/30/2012 11:40:24.807","-1","-1" "03/30/2012 11:40:25.707","-1","-1" "03/30/2012 11:40:26.607","-1","-1" "03/30/2012 11:40:27.507","-1","-1" "03/30/2012 11:40:28.407","0.000000","0.000000" "03/30/2012 11:40:29.307","-1","-1" "03/30/2012 11:40:30.207","-1","-1" "03/30/2012 11:40:31.107","-1","-1" "03/30/2012 11:40:32.007","-1","-1" "03/30/2012 11:40:32.907","0.000000","0.000000" Error: A counter with a negative denominator value was detected.
好吧,那為什麼是間歇性的負面呢?我有一千個其他系統沒有發生這種行為,但我不知道為什麼會在這裡發生。任何幫助,將不勝感激。
經過六個月(斷斷續續)的搜尋,我終於找到了解決這個問題的方法。
我之前也看過brain99提到的那個KB。它含糊地提到了“硬體時間問題”,但沒有給出任何細節。因為我真的只在虛擬機上看到過這種情況,所以“硬體計時問題”的想法似乎很奇怪,但它確實讓我想到了虛擬機如何與它們的主機通信。
這些是 VMware 虛擬機,在 VM Tools 中,檢查了“虛擬機和 ESX 伺服器之間的時間同步”設置。取消檢查可以解決問題。
一直以來,我從未擺弄過 VMware 工具,而且解決方案非常簡單。:P