Share via


Event ID 1006 — Memory Leak Diagnoser

Applies To: Windows Server 2008

In Windows Vista, the Memory Leak Diagnoser component of Windows Resource Exhaustion Detection and Resolution (RADAR) provides information about applications that are diagnosed as having memory leaks. You must review these applications to determine if their linear increase in memory usage represents a true memory leak or if it is expected behavior.

The Memory Leak Diagnoser will not run on:

  • Services or applications that run in Protected Mode. If an application uses protected memory space, it cannot be monitored by the Memory Leak Diagnoser.
  • Services or applications that run in Elevated Mode. If an application runs with elevated privileges, the Memory Leak Diagnoser will not have sufficient permissions to monitor it.
  • Services or applications that cannot be shut down cleanly. If an application is in an unresponsive state or cannot process a request to close, the Memory Leak Diagnoser cannot take corrective action.
  • Versions of Microsoft Windows other than Windows Vista.

Event Details

Product: Windows Operating System
ID: 1006
Source: Microsoft-Windows-Resource-Leak-Diagnostic
Version: 6.0
Symbolic Name: RDR_LEAK_DIAG_STOP_EVENT_FAILED
Message: Windows failed to complete memory leak diagnostics on %1.

Resolve

Start the Diagnostic Policy service and enable Memory Leak Diagnosis

The Diagnostic Policy service provides support for the Memory Leak Diagnoser. In addition, local Group Policy configuration can be used to enable or disable memory leak diagnosis.

Start the Diagnostic Policy service

To start the Diagnostic Policy service:

  1. Click Start, click in the Start Search box, type services.msc, and then press ENTER. Microsoft Management Console (MMC) will open with the Services (Local) snap-in open.
  2. In the list of services, right-click Diagnostic Policy Service, and then click Start.

If the Diagnostic Policy service is not configured to start automatically, you will encounter the same error the next time you restart the system.

Configure the Diagnostic Policy service to start automatically

To configure the Diagnostic Policy service to start automatically:

  1. Click Start, click in the Start Search box, type services.msc, and then press ENTER. MMC will open with the Services (Local) snap-in open.
  2. In the list of services, right-click Diagnostic Policy Service, and then click Properties.
  3. Select Automatic from the Startup type drop-down list, and then click OK.

Enable Memory Leak Diagnosis

To enable the Memory Leak Diagnosis:

  1. Click Start, click in the Start Search box, type gpedit.msc, and then press ENTER. MMC will start with the Local Group Policy Editor open.
  2. In the navigation tree, expand Computer Configuration, expand Administrative Templates, expand System, expand Troubleshooting and Diagnostics, and click Windows Memory Leak Diagnosis.
  3. In the console pane, right-click Configure Scenario Execution Level, and then click Properties.
  4. On the Setting tab, click Enabled, and then click OK.

Verify

Verify that the Diagnostic Policy service is running

To verfy that the Diagnostic Policy service is running:

  1. Click Start, click in the Start Search box, type services.msc, and then press ENTER. Microsoft Management Console (MMC) will open with the Services (Local) snap-in open.
  2. In the list of services, verify that the Diagnostic Policy Service status is Started.

Verify that the Memory Leak Diagnoser is enabled

To verify that the Memory Leak Diagnoser is enabled:

  1. Click Start, click in the Start Search box, type gpedit.msc, and then press ENTER. Microsoft Management Console will start with the Local Group Policy snap-in open.
  2. In the navigation tree, expand Computer Configuration, expand Administrative Templates, expand System, expand Troubleshooting and Diagnostics, and double-click Windows Memory Leak Diagnosis.
  3. In the console pane, right-click Configure Scenario Execution Level, and then click Properties.
  4. On the Setting tab, verify that Enabled is selected.

Memory Leak Diagnoser

Reliability Infrastructure