dotnet / diagnostics

This repository contains the source code for various .NET Core runtime diagnostic tools and documents.
MIT License
1.18k stars 354 forks source link

dotnet-counter frozen just after start #812

Closed danikun closed 3 years ago

danikun commented 4 years ago

I've just installed dotnet-counters as global, I want to monitor an asp.net core app so I run: dotnet-counters monitor -p 12345 The counters appear but get stuck with no numbers, the asp.net core app stops responding to requests and I need to close the counters' console in order to stop it and make the app run again.

This is how it looks when stucked: image

Am I doing something wrong?

dotnet-counters version is 3.1.57502+6767a9ac24bde3a58d7b51bdaff7c7d75aab9a65 dotnet version 3.1.101 Asp.net Core app is also in .net core 3.1

Thanks!

sywhang commented 4 years ago

What is the exact version of your ASP.NET Core application?

danikun commented 4 years ago

I'm using netcoreapp3.1 as target framework and all required microsoft packages updated to 3.1.1, but entity framework which is still on 2.2 because same context is used by an old .net Framework app.

sywhang commented 4 years ago

Thanks @danikun! Unfortunately I wasn't able to repro this locally.

Would you be able to provide a simple repro, or a dump?

davidfowl commented 4 years ago

Are you sure you didn’t pause your console?

danikun commented 4 years ago

I am sure, but it must be something with my app cause with a fresh one created with the template it works.

dweggemans commented 4 years ago

I have the same problem. I've created a fresh ASP.NET Core web application using the Angular template and installed dotnet-counters globally.

dotnet: 3.1.101 dotnet-counters: 3.1.120604+97218bff6a14e60360862529b09b687789cc1279 Target framework: .NET Core 3.1

noahfalk commented 3 years ago

Is this still an active issue? We can reopen if so.