Làm thế nào bạn có thể giám sát hành vi của việc pooling kết nối?
Làm thế nào bạn có thể giám sát hành vi của việc pooling kết nối?
Giám sát connection pool:
.NET Data Provider for SqlServer: NumberOfPooledConnections, NumberOfActiveConnections, NumberOfFreeConnections, HardConnectsPerSecond.EventCounters (Microsoft.Data.SqlClient.EventSource) qua dotnet-counters:dotnet-counters monitor --process-id <pid> Microsoft.Data.SqlClient.EventSource
SqlClientDiagnosticListener, OpenTelemetry (OpenTelemetry.Instrumentation.SqlClient), Microsoft.Data.SqlClient metrics (số kết nối đang dùng/ chờ).SELECT program_name, host_name, COUNT(*) AS connections FROM sys.dm_exec_sessions WHERE is_user_process = 1 GROUP BY program_name, host_name;
Đăng nhập để tham gia thảo luận cùng mọi người.
Chưa có bình luận nào
Hãy là người đầu tiên chia sẻ suy nghĩ của bạn.