Missing process performance counters

For the latest, most advanced host monitoring, check out New Relic Infrastructure.

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

Discuss New Relic Servers in the New Relic Online Technical Community! Troubleshoot and ask questions, or discuss Servers for Linux or Servers for Windows in detail.

If you need additional help, get support at support.newrelic.com.