There were a few tickets when this error has been discussed:
ZBX-20269, ZBX-20356, ZBX-21661
Key point of this report - memory leak on zabbix_agent2.exe process.
Attaching a few graphs, where agent restarts happened.
Timestamps are taken from agent2 log.
2023/07/25 07:21:48.214367 Starting Zabbix Agent 2 (6.4.2)
2023/07/25 12:39:38.655118 Starting Zabbix Agent 2 (6.4.2)
2023/07/25 13:00:46.133411 Starting Zabbix Agent 2 (6.4.2)
When restarting agent at 13:00:46 it started with DebugLevel=4, log available if needed.
The "negative denominator" error has been logged only twice, but the memory leak on the graph is constant - increasing linearly.
As agent2's log does not have PIDs in log headers, it's hard to track log messages in Debug, so here are just those lines:
2023/07/25 13:13:28.006407 Detected performance counter with negative denominator, retrying in 1 second
2023/07/25 13:13:29.006953 Detected performance counter with negative denominator the second time after retry, giving up...
2023/07/25 13:13:29.009218 [Cpu] cannot obtain CPU#1 utilization counter value: Es wurde ein Leistungsindikator mit einem negativen Nenner gefunden.