-
Notifications
You must be signed in to change notification settings - Fork 1.5k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PerformanceCounters causes hang #587
Comments
Any news on this? |
I have the exact same issue. I thought it was just my machine, but I guess there are at least three of us. |
Hello I have found some related topics, but not yet tried this: |
given the descriptions here, I'm tempted to change the code to make this
explicit opt-in; so folks can enable it if needed ir works on their
platform, but so it doesnt trip the innocent. Any thoughts?
…On 3 Apr 2017 5:26 p.m., "AlexanderKot" ***@***.***> wrote:
Hello
Unfortunately this fix do not help in my case.
UnauthorizedAccessException not raised and _disabled flag not seted.
Calling thread is locked somewhere inside .Net internals:
mscorlib.dll!Microsoft.Win32.RegistryKey.InternalGetValue(string name,
object defaultValue, bool
(inside this method)
I have found some related topics, but not yet tried this:
https://stackoverflow.com/questions/4209366/what-would-make-
performancecountercategory-exists-hang-indefinitely
https://stackoverflow.com/questions/2868068/performancecounter-nextvalue-
hangs-on-some-machines
https://support.microsoft.com/en-us/help/300956/how-to-
manually-rebuild-performance-counter-library-values
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub
<#587 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/AABDsBFAfXPzttoPPbk4J2X4gNSHCOcsks5rsR2igaJpZM4MSaCl>
.
|
Yes, that sounds like a good plan :). The less work I have to do the better, if I need diagnostics I'll enable it and take the hit. |
For me IncludeDetailInExceptions = false by default is only reasonable and safe solution in current situation. |
Hello
I am using StackExchange.Redis with NHibernate.Caches.Redis
I have experimented with behavior of our system if it will loose connection with Redis (lunch application and then stop Redis server).
On my environment (w7x64, Vs 2015U3, IIS Express 10.0.14358, .Net 4.6) I have stable hang on accessing PerformanceCounter when preparing exception after connection was lost.
After this happens IISExpress is locked and do not accept new requests.
I cannot reproduce the same behavior on my colleagues PCs.
I have found similar bugs:
Particular/NServiceBus#2047
SignalR/SignalR#3414
I have tried solution used in SignalR:
SignalR/SignalR@23e5b1b
I have added EnsureValidCulture() method to StackExchange.Redis and call it in TryGetSystemCPU method.
Unfortunately, it does not help.
There exists workaround currently:
ConnectionMultiplexer.IncludeDetailInExceptions must be false
This flag is set true by default.
Do somebody has any ideas?
PS
Part of call stack from my environment:
[Managed to Native Transition]
mscorlib.dll!Microsoft.Win32.RegistryKey.InternalGetValue(string name, object defaultValue, bool doNotExpand, bool checkSecurity) Unknown
mscorlib.dll!Microsoft.Win32.RegistryKey.GetValue(string name) Unknown
System.dll!System.Diagnostics.PerformanceMonitor.GetData(string item) Unknown
System.dll!System.Diagnostics.PerformanceCounterLib.GetPerformanceData(string item) Unknown
System.dll!System.Diagnostics.PerformanceCounterLib.CategoryTable.get() Unknown
System.dll!System.Diagnostics.PerformanceCounterLib.CounterExists(string category, string counter, ref bool categoryExists) Unknown
System.dll!System.Diagnostics.PerformanceCounterLib.CounterExists(string machine, string category, string counter) Unknown
System.dll!System.Diagnostics.PerformanceCounter.InitializeImpl() Unknown
System.dll!System.Diagnostics.PerformanceCounter.PerformanceCounter(string categoryName, string counterName, string instanceName, bool readOnly) Unknown
System.dll!System.Diagnostics.PerformanceCounter.PerformanceCounter(string categoryName, string counterName, string instanceName) Unknown
The text was updated successfully, but these errors were encountered: