Uploaded image for project: 'Core Server'
  1. Core Server
  2. SERVER-27354

Use performance counter ids instead of localized names in FTDC

    • Type: Icon: Bug Bug
    • Resolution: Done
    • Priority: Icon: Minor - P4 Minor - P4
    • 4.9.0
    • 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.

            Assignee:
            mark.benvenuto@mongodb.com Mark Benvenuto
            Reporter:
            mango Jan S.
            Votes:
            5 Vote for this issue
            Watchers:
            14 Start watching this issue

              Created:
              Updated:
              Resolved: