
Not sure if exaxtly the same issue but the same symptoms with the exception that this happens reliably as soon as I fire up the hundred or so client websocket connections in my app. App slows to a crawl, Diag tools screen almost stops and many threads are in "System.Private.CoreLib.dll!System.Diagnostics.Debugger.NotifyOfCrossThreadDependencySlow()" as per the screenshot. It started happening following my port from .NET Framework to .NET5.0 (latest GA build)
Originally posted by @sossee2 in #42375 (comment)
- The app appears to run fine without the debugger attached.
- With debugger attached the app appears to get slower and slower (exponentially) with more and more websockets added.