Missing process performance counters

Deprecated

New Relic Servers is no longer available. For infrastructure monitoring, please use New Relic Infrastructure. For how to switch to Infrastructure from Servers, see the transition guide.

Problem

You want to enable process performance counters, or you see a message in the Servers for Windows event log that looks similar to this:

Process performance counters are disabled. 

Solution

This message indicates that performance counters for processes are disabled for the server. You can check and reset them manually, or you can run a Powershell script. If you make any changes, be sure to reboot the server.

Enabling manually

The value 0 in Disable Performance Counters indicates that the process performance counters are enabled. Any other values indicate disabled. To confirm whether process performance counters are disabled:

  1. From the Registry Editor, find the key HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ PerfProc\ Performance.
  2. From PerfProc\Performance, look for the value Disable Performance Counters. If it does not appear, skip this step. Otherwise, make sure the value is 0 (enabled).
  3. If you change this value, or if the script updates the setting, be sure to reboot the server.
screen-disable-performance-monitoring-registry-editor
Registry Editor: If the HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ Services\ PerfProc\ Performance section of your Registry Editor includes Disable Performance Counters, make sure it is set to 0 (enabled).
Enabling with Powershell

The following Powershell script will check the registry for the settings that control whether process performance counters are enabled. If not enabled, the script will enable it (0).

$value =(Get-Itemproperty hklm:SYSTEM\CurrentControlSet\services\PerfProc\Performance)."Disable Performance Counters"

If ($value -ne 0)
{
Set-ItemProperty -Path hklm:SYSTEM\CurrentControlSet\services\PerfProc\Performance -Name "Disable Performance Counters" -Value 0 

For more help

New Relic Servers is unavailable as of May 15, 2018. For more information: