Eventstore: Stats for multiple nodes on same Windows server are incorrect

Created on 31 Aug 2017  路  2Comments  路  Source: EventStore/EventStore

When running multiple nodes on the same Windows server, the process cpu, exception rates, thread count, contention and garbage collector statistics are wrong.

When running multiple instances of the same .exe on Windows, the performance counter instance names are indexed randomly and can change at any time. To correctly read a value such as "Process/% Processor Time"; you must first find the correct instance name via "Process/ID Process" == pid. Then use that instance name to access the correct counter.

The current implementation uses only the un-indexed initial instance name. Therefore all instances on the same server have the same statistics.

kinbug

All 2 comments

Was this page helpful?
0 / 5 - 0 ratings