.NET Apps/\% Performance Events/sec 提供每秒發出之效能事件的百分比。當事件論詢視窗之間有大量長時間執行的要求時,此數字可能會大於 100\%
此規則會針對應用程式收集 .NET Apps 效能事件數效能計數器。
此計數器會記錄由應用程式所產生的每秒效能事件數。此計數器所記錄的事件數目是根據如代理程式設定、閾值層級和啟用的命名空間等資訊。此計數器可能會大於回報給 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>