.NET Apps/\% Performance Events/sec 提供每秒引发的性能事件的百分比。 如果有大量在事件轮询时段内长时间运行的请求,则此数字可能会高于 100\%
此规则为应用程序收集 .NET Apps Performance events 性能计数器。
此计数器记录应用程序每秒生成的性能事件的数量。 此计数器记录的事件数基于一些信息,如代理配置、阈值级别和启用的命名空间。 此计数器可能比报告给 Application Diagnostic 控制台的性能事件数大,因为它还包括了事件限制所抑制的事件。
仅在启用应用程序性能监视时,此计数器才可用。
服务器问题或查询结构和复杂性的问题可能会导致数据库调用时间过长。 文件服务器问题可能会导致文件 I/O 时间很长。 Web 服务或它驻留的服务器关闭,或者 Web 服务代码中出现问题,都可能会导致 Web 服务的性能问题。 复杂或低效的代码可能会导致应用程序的内部执行时间很长。
Target | Microsoft.SystemCenter.Apm.ApplicationInstance |
Category | PerformanceCollection |
Enabled | True |
Instance Name | .NET Apps |
Counter Name | \% Performance Events/sec |
Frequency | 300 |
Alert Generate | False |
Remotable | False |
ID | Module Type | TypeId | RunAs |
---|---|---|---|
DS | DataSource | System.Performance.DataProvider | Default |
WriteToDB | WriteAction | Microsoft.SystemCenter.CollectPerformanceData | Default |
WriteToDW | WriteAction | Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData | Default |
<Rule ID="Microsoft.SystemCenter.Apm.ApplicationInstance.CollectPerformanceEventsRate" Enabled="true" Target="Microsoft.SystemCenter.Apm.ApplicationInstance" ConfirmDelivery="false" Remotable="false" Priority="Normal" DiscardLevel="100">
<Category>PerformanceCollection</Category>
<DataSources>
<DataSource ID="DS" TypeID="Performance!System.Performance.DataProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<CounterName>% Performance Events/sec</CounterName>
<ObjectName>.NET Apps</ObjectName>
<InstanceName>$Target/Property[Type="Microsoft.SystemCenter.Apm.ApplicationInstance"]/CounterInstance$</InstanceName>
<AllInstances>false</AllInstances>
<Frequency>300</Frequency>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WriteToDB" TypeID="SC!Microsoft.SystemCenter.CollectPerformanceData"/>
<WriteAction ID="WriteToDW" TypeID="SCDW!Microsoft.SystemCenter.DataWarehouse.PublishPerformanceData"/>
</WriteActions>
</Rule>