Skip to content
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

Clarify whether dotnet-counters can monitor .NET Framework app #4597

Closed
hickford opened this issue Apr 11, 2024 · 3 comments · Fixed by dotnet/docs#41023
Closed

Clarify whether dotnet-counters can monitor .NET Framework app #4597

hickford opened this issue Apr 11, 2024 · 3 comments · Fixed by dotnet/docs#41023
Assignees
Labels
documentation Documentation related issue
Milestone

Comments

@hickford
Copy link

Documentation Request

Can dotnet-counters monitor a .NET Framework app? It would be good to clarify at https://learn.microsoft.com/en-gb/dotnet/core/diagnostics/dotnet-counters

@hickford hickford added the documentation Documentation related issue label Apr 11, 2024
@hickford
Copy link
Author

I tried to monitor a .NET Framework process with dotnet-counters and got a timeout error:

Unhandled exception: System.TimeoutException: The operation has timed out.
   at System.IO.Pipes.NamedPipeClientStream.ConnectInternal(Int32 timeout, CancellationToken cancellationToken, Int32 startTime)
   at System.IO.Pipes.NamedPipeClientStream.Connect(Int32 timeout)
   at Microsoft.Diagnostics.NETCore.Client.IpcEndpointHelper.Connect(IpcEndpointConfig config, TimeSpan timeout) in /_/src/Microsoft.Diagnostics.NETCore.Client/DiagnosticsIpc/IpcTransport.cs:line 62
   at Microsoft.Diagnostics.NETCore.Client.PidIpcEndpoint.Connect(TimeSpan timeout) in /_/src/Microsoft.Diagnostics.NETCore.Client/DiagnosticsIpc/IpcTransport.cs:line 243
   at Microsoft.Diagnostics.NETCore.Client.IpcClient.SendMessageGetContinuation(IpcEndpoint endpoint, IpcMessage message) in /_/src/Microsoft.Diagnostics.NETCore.Client/DiagnosticsIpc/IpcClient.cs:line 40
   at Microsoft.Diagnostics.NETCore.Client.DiagnosticsClient.TryGetProcessInfo3() in /_/src/Microsoft.Diagnostics.NETCore.Client/DiagnosticsClient/DiagnosticsClient.cs:line 485
   at Microsoft.Diagnostics.NETCore.Client.DiagnosticsClient.GetProcessInfo() in /_/src/Microsoft.Diagnostics.NETCore.Client/DiagnosticsClient/DiagnosticsClient.cs:line 429
   at Microsoft.Diagnostics.Tools.Counters.CounterMonitor.Monitor(CancellationToken ct, List`1 counter_list, String counters, IConsole console, Int32 processId, Int32 refreshInterval, String name, String diagnosticPort, Boolean resumeRuntime, Int32 maxHistograms, Int32 maxTimeSeries, TimeSpan duration, Boolean showDeltas) in /_/src/Tools/dotnet-counters/CounterMonitor.cs:line 213

@tommcdon tommcdon added this to the 9.0.0 milestone Apr 16, 2024
@noahfalk
Copy link
Member

Sorry I see this issue has gotten a bit stale. I'll leave this open to track the docs part but just to answer the question, no, dotnet-counters does not support .NET Framework apps.

@noahfalk
Copy link
Member

Fixed

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Documentation related issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants