-
Type: Bug
-
Resolution: Done
-
Priority: Minor - P4
-
Affects Version/s: 3.4.0
-
Component/s: Diagnostics
-
Fully Compatible
-
ALL
-
Security 2020-11-16
If you start Mongo 3.4 on a Windows system that uses a language other than English the performance counter \Memory\Available Bytes is not available which leads to the following error message on the console when starting Mongo:
[initandlisten] Failed to initialize Performance Counters for FTDC: WindowsPdhError: PdhExpandCounterPathW failed with 'Das angegebene Objekt wurde nicht auf dem Computer
gefunden.' for counter '\Memory\Available Bytes'.
(translated: The specified object was not found on your computer)
The language independent way to access performance counters seems to use "ID numbers" instead of names (or to retrieve the local names via PdhLookupPerfNameByIndex using those IDs). If I am not wrong the ID for "Memory" is 4 and the ID for "Available Bytes" is 24.