Lista winnt@man.lodz.pl
[Lista archiwów] [Inne Listy]

Re: [WINNT] Performance counters - która usługa

To: winnt@man.lodz.pl
Subject: Re: [WINNT] Performance counters - która usługa
From: Piotr Rezmer <p.r@bezBzdur.pl>
Date: Fri, 12 Jul 2013 17:26:21 +0200
xcpy pisze:
A probowales "zresetowac" Performance Counters?
Co dokładniej masz na myśli?

Podpowiem jeszcze że mam dwa hosty (C,D) realizujące w sposób identyczny monitoring hosta A. Host D nie ma problemów z odczytem liczników hosta A. Host C zgłasza wyjątek ObjectDisposedException:

System.ObjectDisposedException: Cannot access a closed registry key.
Object name: 'HKEY_PERFORMANCE_DATA'.
   at Microsoft.Win32.RegistryKey.EnsureNotDisposed()
at Microsoft.Win32.RegistryKey.InternalGetValue(String name, Object defaultValue, Boolean doNotExpand, Boolean checkSecurity)
   at Microsoft.Win32.RegistryKey.GetValue(String name)
   at System.Diagnostics.PerformanceMonitor.GetData(String item)
at System.Diagnostics.PerformanceCounterLib.GetPerformanceData(String item) at System.Diagnostics.PerformanceCounterLib.GetCategorySample(String category) at System.Diagnostics.PerformanceCounterLib.GetCategorySample(String machine, String category)
   at System.Diagnostics.PerformanceCounter.NextSample()
   at System.Diagnostics.PerformanceCounter.NextValue()


--
pozdrawiam
Piotr
XLR250&bmw_f650_dakar

<Pop. w Wątku] Aktualny Wątek [Nast. w Wątku>