.NET性能计数器 - 进程(W3WP)\%处理器时间计数器、处理器、进程、性能

2023-09-04 09:20:58 作者:風吹柳絮飛

在性能测试过程中,我发现进程(W3WP)\%处理器时间的值大于100的一些值

During performance testing, I found that the values of Process(w3wp)\% Processor Time are greater than 100. Some values are

237.1436486
312.5338052
341.2373994
264.4097661
191.6237736

我想这转口货值为presents的CPU使用率w3wp进程。我不明白为什么值大于100%。

I thought this value represents the CPU usage by w3wp process. I don't understand why the value is greater than 100%.

推荐答案

如果你有多个内核就可以去了100,它的处理器使用的总和的每个的处理器(核心或虚拟核心),所以100是正常的( 100 * numberOfCores 是NAX)。

If you have multiple cores it can go over 100, it's the sum of the processor usage for each processor (core, or virtual core) so over 100 is normal (100*numberOfCores is the nax).

使用了过程(w3wp_Total)版本,如果你想整个CPU%计数器,这种瓶盖在100。

Use the Process(w3wp_Total) version of the counter if you want the overall CPU %, this caps out at 100.