Component
Full Dashboard
Performance Monitor Version
2.10.0
SQL Server Version
sql server 2025 (and probably others)
Windows Version
Windows Server 2019
Describe the Bug
In the PerformanceMonitor-database if I run a collection-procedure with the @Debug-flag set to 1, I do not get any printed information returned to the Messages-tab. I have seen/tested this with [collect].[cpu_utilization_stats_collector] , but the problem probably is in other collect-procedures as well.
Steps to Reproduce
In SSMS run EXEC [collect].[cpu_utilization_stats_collector] @debug=1
Expected Behavior
In the Messages tab, I would expect to see something like:
Collected 1 CPU utilization stats rows
Actual Behavior
I only get the following:
Commands completed successfully.
Error Messages / Log Output
Screenshots
No response
Additional Context
The problem originates in that %d expects integer while the variable @rows_collected is bigint.
If changed from:
RAISERROR(N'Collected %d CPU utilization stats rows', 0, 1, @rows_collected) WITH NOWAIT;
to:
RAISERROR(N'Collected %I64d CPU utilization stats rows', 0, 1, @rows_collected) WITH NOWAIT;
...it works.
Component
Full Dashboard
Performance Monitor Version
2.10.0
SQL Server Version
sql server 2025 (and probably others)
Windows Version
Windows Server 2019
Describe the Bug
In the PerformanceMonitor-database if I run a collection-procedure with the @Debug-flag set to 1, I do not get any printed information returned to the Messages-tab. I have seen/tested this with [collect].[cpu_utilization_stats_collector] , but the problem probably is in other collect-procedures as well.
Steps to Reproduce
In SSMS run EXEC [collect].[cpu_utilization_stats_collector] @debug=1
Expected Behavior
In the Messages tab, I would expect to see something like:
Collected 1 CPU utilization stats rows
Actual Behavior
I only get the following:
Commands completed successfully.
Error Messages / Log Output
Screenshots
No response
Additional Context
The problem originates in that %d expects integer while the variable @rows_collected is bigint.
If changed from:
RAISERROR(N'Collected %d CPU utilization stats rows', 0, 1, @rows_collected) WITH NOWAIT;
to:
RAISERROR(N'Collected %I64d CPU utilization stats rows', 0, 1, @rows_collected) WITH NOWAIT;
...it works.