我注意到,我设置的用于测量 Win 2008 服务器上的 CPU 的本地 perfmon 在记录到 CPU 时实际上记录了两个数据点:
"(PDH-CSV 4.0) (GMT Daylight Time)(-60)","\\SIA16\Processor(_Total)\% Processor Time"
"07/06/2009 10:04:14.358"," "
"07/06/2009 10:04:44.354","3.4623040374319847"
"07/06/2009 10:04:44.369","0"
"07/06/2009 10:05:14.349","4.167729488025862"
"07/06/2009 10:05:14.365","24.961740656075715"
"07/06/2009 10:05:44.354","3.2723078398174565"
"07/06/2009 10:05:44.370","0"
"07/06/2009 10:06:14.340","3.4322359633112365"
"07/06/2009 10:06:14.371","0"
"07/06/2009 10:06:44.342","1.584632850972445"
"07/06/2009 10:06:44.373","0"
"07/06/2009 10:07:14.346","3.8717442047881967"
"07/06/2009 10:07:14.362","0"
"07/06/2009 10:07:44.343","3.4048134031355537"
"07/06/2009 10:07:44.359","0"
"07/06/2009 10:08:14.348","3.8436432760831196"
"07/06/2009 10:08:14.363","0"
"07/06/2009 10:08:44.344","3.7013401033585414"
"07/06/2009 10:08:44.360","0"
"07/06/2009 10:09:14.344","5.003598753410432"
"07/06/2009 10:09:14.360","0"
"07/06/2009 10:09:44.353","2.3193168051101831"
"07/06/2009 10:09:44.368","0"
有没有人见过这个问题?正如您所看到的,它有时会为第二个数据点提供非零值,但通常也会为零。
提前致谢,Ciaran
答案1
我对此不太清楚,但 _Total 是否表示您正在从所有处理器收集信息,并且有一个处理器处于空闲状态?检查 Processor(0),我认为这可能会给您一组结果。
答案2
谢谢你的帮助,但看起来这实际上是漏洞。Microsoft 尚未发布任何解决方案,但我们必须采用线程中提到的解决方法。