Repeated 'addCounter Failed to add PDH Counter: \Memory\Pages Input/sec, Error code: 0x800007D0' error messages on the logs
プラットフォームについて: Server および Data Center のみ。この記事は、Server および Data Center プラットフォームのアトラシアン製品にのみ適用されます。
Support for Server* products ended on February 15th 2024. If you are running a Server product, you can visit the Atlassian Server end of support announcement to review your migration options.
*Fisheye および Crucible は除く
要約
After starting Confluence, these messages get logged repeatedly in short intervals, filling up the logs:
2020-06-19 13:34:31,804 WARN [diagnostics-os-thread] [util.platform.windows.PerfDataUtil] addCounter Failed to add PDH Counter: \Memory\Pages Input/sec, Error code: 0x800007D0
環境
Confluence is running on a Windows environment.
原因
These log entries are related to the Windows Performance Monitor tool, which the Confluence Diagnostic module uses in order to gather information from the operating system, to provide OS-related warning messages on the logs (such as low disk space, low free memory, etc). Error 0x800007D0 means the performance monitor tools could not be accessed by Confluence.
ソリューション
If the Confluence user (the user that's starting the Confluence service) can't access the OS's performance monitoring tools, that error will usually be displayed. The usual solution for these cases, is to add the service user which runs Confluence to the local group "Performance Monitor Users", as per the Resolution section of this article from Microsoft's documentation: