0

PerformanceCounterCategoryメソッドを使用しPerformanceCounterCategory.GetInstanceNames()て例外の下に取得することにより、 a のすべてのインスタンス名を列挙しようとしています:

Load factor needs to be between 0.1 and 1.0.
Parameter name: loadFactor
EXCEPTION: System.ArgumentOutOfRangeException
   at System.Collections.Hashtable..ctor(Int32 capacity, Single loadFactor)
   at System.Diagnostics.CategorySample..ctor(Byte[] data, CategoryEntry entry, PerformanceCounterLib library)
   at System.Diagnostics.PerformanceCounterLib.GetCategorySample(String category)
   at System.Diagnostics.PerformanceCounterLib.GetCategorySample(String machine, String category)
   at System.Diagnostics.PerformanceCounterCategory.GetCounterInstances(String categoryName, String machineName)
   at System.Diagnostics.PerformanceCounterCategory.GetInstanceNames()
   at Abc.Xyz.Utilities.PerfCounter.InitCounter()

既にパフォーマンス カウンター カテゴリを確認しましたが、存在します。

助言がありますか?

4

0 に答える 0