dotnet-counters ps 不显示任何进程 [英] dotnet-counters ps doesn't show any processes
问题描述
我有 .NET Core 2.2 应用程序并想使用 dotnet-counters 以获取有关 GC 的一些数据.不幸的是 dotnet-counters 由于某种原因看不到我的应用程序(.NET 核心进程).当我跑
I have .NET Core 2.2 application and wanted to use dotnet-counters to get some data about GC. Unfortunately dotnet-counters doesn't see my app (.NET core process) for some reason. When I run
dotnet-counters ps
它什么都不返回(我的 .NET 核心应用程序当然正在运行).我使用 .NET Core 版本 2.2.8 和 dotnet-counters 版本 3.1.57502.我尝试了应用程序的独立版本和框架依赖版本.
It returns nothing (my .NET core application is running of course). I use .NET Core version 2.2.8 and dotnet-counters version 3.1.57502. I tried both standalone and Framework dependend version of application.
推荐答案
诊断工具(dotnet counters
、dotnet trace
、dotnet dump
) 依赖于暴露必要接口的运行时的新功能.这些仅存在于 .NET Core 3.0 或更高版本上.
The diagnostic tools (dotnet counters
, dotnet trace
, dotnet dump
) rely on new features of the runtime exposing the necessary interfaces. These are only present on .NET Core 3.0 or higher.
这意味着无法使用这些工具监控/诊断 .NET Core 2.2 应用程序.您需要将应用程序更新到 .NET Core 3.0+
This means that a .NET Core 2.2 application cannot be monitored / diagnosed with these tools. You will need to update your application to .NET Core 3.0+
这篇关于dotnet-counters ps 不显示任何进程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!