问题描述
使用Oracle.ManagedDataAccess.Core 3.21.1创建Net Core 5.0和基于C # 的微服务在基于Linux的容器中运行。我想至少记录性能计数器,以便以后分析性能。我知道System.Diagnostics.PerfomanceCounters仅在Windows上可用。Net Framework (对吗?),有没有可能在Linux上获得这些数字?
事件计数器。Net Core?我可能在这里走错了路,找不到任何有关此的信息。我想做的是在池中打开/关闭连接的简单日志。来解释为什么有时需要一段时间才能打开连接。不想使用庞大的软件包来完成此操作,而只是对我们的Elastic/Kibana进行简单的日志发布。
如果您有任何想法可以帮助我,我将不胜感激。
事件计数器。Net Core?我可能在这里走错了路,找不到任何有关此的信息。我想做的是在池中打开/关闭连接的简单日志。来解释为什么有时需要一段时间才能打开连接。不想使用庞大的软件包来完成此操作,而只是对我们的Elastic/Kibana进行简单的日志发布。
如果您有任何想法可以帮助我,我将不胜感激。
专家解答
谢谢你的耐心。我与dot.net团队进行了交谈,并获得了以下信息
Using Oracle.ManagedDataAccess.Core 3.21.1 to create .Net Core 5.0 and C#-based microservices running in Linux-based containers. I'd like to at least log perfomance counters for later analysis of performance. I know System.Diagnostics.PerfomanceCounters is only available on Windows .Net Framework (right?),
System.Diagnostics.PerformanceCounters可与Windows上的NET Core也是如此。Windows上的ODP.NET核心计数器支持这一点。
is there any chance I can get those numbers when on Linux?
不是这个库,因为MS不打算移植它,以便它是跨平台的。
EventCounter for .Net Core?
EventCounter是DB性能计数器的首选方向。MS最近在上个月添加了对SqlClient的支持。
https://github.com/dotnet/SqlClient/issues/523
https://github.com/dotnet/SqlClient/pull/719
的。甲骨文的网络团队正在研究这个问题。如需进一步跟进,请发送电子邮件至ODP.NET的PM alex.keh(at)oracle.com。
Using Oracle.ManagedDataAccess.Core 3.21.1 to create .Net Core 5.0 and C#-based microservices running in Linux-based containers. I'd like to at least log perfomance counters for later analysis of performance. I know System.Diagnostics.PerfomanceCounters is only available on Windows .Net Framework (right?),
System.Diagnostics.PerformanceCounters可与Windows上的NET Core也是如此。Windows上的ODP.NET核心计数器支持这一点。
is there any chance I can get those numbers when on Linux?
不是这个库,因为MS不打算移植它,以便它是跨平台的。
EventCounter for .Net Core?
EventCounter是DB性能计数器的首选方向。MS最近在上个月添加了对SqlClient的支持。
https://github.com/dotnet/SqlClient/issues/523
https://github.com/dotnet/SqlClient/pull/719
的。甲骨文的网络团队正在研究这个问题。如需进一步跟进,请发送电子邮件至ODP.NET的PM alex.keh(at)oracle.com。
文章转载自ASKTOM,如果涉嫌侵权,请发送邮件至:contact@modb.pro进行举报,并提供相关证据,一经查实,墨天轮将立刻删除相关内容。




