windows-server-2008 – Windows性能计数器中的(*)是什么

前端之家收集整理的这篇文章主要介绍了windows-server-2008 – Windows性能计数器中的(*)是什么前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
以下面的计数器为例:

\LogicalDisk(*)\% Free Space

哪里可以找到什么可以代替*?

我知道有时它是_global_,有时它可以是_total_.我不知道差异(除了明显的猜测).

还有什么可用?
我可以/不能用于不同的柜台?

星号代表“所有实例”,其中包括_Total(如果适用).

Perfmon可能是最容易查看计数器并查看系统可用内容的地方.

documentation for typeperf

•Counter path format 

The general format for counter paths is as follows: [\\Computer]\object[parent/instance#index]\counter] where:

The parent,instance,index,and counter components of the format may contain either a valid name or a wildcard character. The computer,parent,and index components are not necessary for all counters.

You determine the counter paths to use based on the counter itself. For example,the LogicalDisk object has an instance index,so you must provide the #index or a wildcard. Therefore,you could use the following format:

\LogicalDisk(*/*#*)\*

In comparison,the Process object does not require an instance index. Therefore,you could use the following format:

\Process(*)\ID Process

The following is a list of the possible formats: ◦ \\machine\object(parent/instance#index)\counter 

◦ \\machine\object(parent/instance)\counter 

◦ \\machine\object(instance#index)\counter 

◦ \\machine\object(instance)\counter 

◦ \\machine\object\counter 

◦ \object(parent/instance#index)\counter 

◦ \object(parent/instance)\counter 

◦ \object(instance#index)\counter 

◦ \object(instance)\counter 

◦ \object\counter

编辑:哦,别忘了在Powershell中查看Get-Counter:

PS C:\> (Get-Counter -ListSet Memory).Paths

\Memory\Page Faults/sec
\Memory\Available Bytes
\Memory\Committed Bytes
\Memory\Commit Limit
\Memory\Write Copies/sec
\Memory\Transition Faults/sec
\Memory\Cache Faults/sec
\Memory\Demand Zero Faults/sec
\Memory\Pages/sec
\Memory\Pages Input/sec
...

The second command gets the path names that include "cache".
PS C:\> (Get-Counter -ListSet Memory).Paths | Where {$_ -like "*Cache*"}

\Memory\Cache Faults/sec
\Memory\Cache Bytes
\Memory\Cache Bytes Peak
\Memory\System Cache Resident Bytes
\Memory\Standby Cache Reserve Bytes
\Memory\Standby Cache Normal Priority Bytes
\Memory\Standby Cache Core Bytes
原文链接:https://www.f2er.com/windows/368334.html

猜你在找的Windows相关文章