The handle count and the memory usage of an application keep increasing if the application calls PDH APIs to add and delete V2 performance counters on a computer that is running Windows Server 2008 or Windows Vista
Your computer is running Windows Server 2008 or Windows Vista. You have an application that calls Performance Data Helper (PDH) APIs to add
and delete V2 performance counters. However, in this scenario, the handle count and the memory usage of the application keep
increasing.
The PdhRemoveCounter function removes a V2
performance counter from a query. However, the PdhRemoveCounter function does not release a structure. This behavior causes a memory leak that creates the problem described in the "Symptoms" section.
A
supported hotfix is available from Microsoft. However, this hotfix is intended
to correct only the problemP1 that P2 described in this article. Apply this
hotfix only to systems that are experiencing the problemP1 described in this
article. This hotfix might receive additional testing. Therefore, if you are
not severely affected by this problem, we recommend that you wait for the next
software update that contains this hotfix.
If the hotfix is available
for download, there is a "Hotfix download available" section at the top of this
Knowledge Base article. If this section does not appear, contact Microsoft
Customer Service and Support to obtain the hotfix.
Note If additional issues occur or if any troubleshooting is required,
you might have to create a separate service request. The usual support costs
will apply to additional support questions and issues that do not qualify for
this specific hotfix. For a complete list of Microsoft Customer Service and
Support telephone numbers or to create a separate service request, visit the
following Microsoft Web site:
Note The "Hotfix download available" form displays the languages for
which the hotfix is available. If you do not see your language, it is because a
hotfix is not available for that language.
Important Windows Vista
and Windows Server 2008 hotfixes are included in the same packages. However,
only one of these products may be listed on the “Hotfix Request” page. To
request the hotfix package that applies to both Windows Vista and Windows
Server 2008, just select the product that is listed on the page.
Prerequisites
To apply this hotfix, your computer must be running one of the following operating systems:
Windows Server 2008
Windows Server 2008 Service Pack 2 (SP2)
Windows Vista Service Pack 1 (SP1)
Windows Vista Service Pack 2 (SP2)
Restart requirement
You must restart the computer after you apply this hotfix.
Hotfix replacement information
This hotfix does not replace any other previously released
hotfixes.
File information
The English version of this hotfix has the file
attributes (or later file attributes) that are listed in the following table.
The dates and times for these files are listed in Coordinated Universal Time
(UTC). When you view the file information, it is converted to local time. To
find the difference between UTC and local time, use the Time
Zone tab in the Date and Time item in Control
Panel.
The MANIFEST files (.manifest) and the MUM files (.mum)
that are installed for each environment are
listed separately . MUM and
MANIFEST files, and the associated security catalog (.cat) files, are critical
to maintaining the state of the updated component. The security catalog files
(attributes not listed) are signed with a Microsoft digital signature.
For all supported x86-based versions of Windows Server 2008 and of Windows Vista SP1
Collapse this tableExpand this table
File name
File version
File
size
Date
Time
Platform
SP requirement
Pdh.dll
6.0.6001.22434
242,688
15-May-2009
13:01
x86
SP1
Pla.dll
6.0.6001.22434
1,502,208
15-May-2009
13:01
x86
SP1
Plamig.dll
6.0.6001.22434
96,256
15-May-2009
13:02
x86
SP1
Plasrv.exe
6.0.6001.22434
7,680
15-May-2009
10:38
x86
SP1
Report.system.common.xml
Not
Applicable
1,927
01-Apr-2009
19:06
Not
Applicable
SP1
Report.system.configuration.xml
Not
Applicable
27,570
01-Apr-2009
19:06
Not
Applicable
SP1
Report.system.cpu.xml
Not
Applicable
4,438
01-Apr-2009
19:06
Not
Applicable
SP1
Report.system.diagnostics.xml
Not
Applicable
7,242
01-Apr-2009
19:06
Not
Applicable
SP1
Report.system.disk.xml
Not
Applicable
3,198
01-Apr-2009
19:06
Not
Applicable
SP1
Report.system.memory.xml
Not
Applicable
4,822
01-Apr-2009
19:06
Not
Applicable
SP1
Report.system.network.xml
Not
Applicable
5,088
01-Apr-2009
19:06
Not
Applicable
SP1
Report.system.performance.xml
Not
Applicable
471
01-Apr-2009
19:06
Not
Applicable
SP1
Report.system.summary.xml
Not
Applicable
738
01-Apr-2009
19:06
Not
Applicable
SP1
Rules.system.common.xml
Not
Applicable
3,059
01-Apr-2009
19:06
Not
Applicable
SP1
Rules.system.configuration.xml
Not
Applicable
288,269
01-Apr-2009
19:06
Not
Applicable
SP1
Rules.system.cpu.xml
Not
Applicable
9,062
01-Apr-2009
19:06
Not
Applicable
SP1
Rules.system.diagnostics.xml
Not
Applicable
177,150
01-Apr-2009
19:06
Not
Applicable
SP1
Rules.system.disk.xml
Not
Applicable
6,251
01-Apr-2009
19:06
Not
Applicable
SP1
Rules.system.finale.xml
Not
Applicable
7,036
01-Apr-2009
19:06
Not
Applicable
SP1
Rules.system.memory.xml
Not
Applicable
12,915
01-Apr-2009
19:06
Not
Applicable
SP1
Rules.system.network.xml
Not
Applicable
3,357
01-Apr-2009
19:06
Not
Applicable
SP1
Rules.system.performance.xml
Not
Applicable
3,434
01-Apr-2009
19:06
Not
Applicable
SP1
Rules.system.summary.xml
Not
Applicable
18,549
01-Apr-2009
19:06
Not
Applicable
SP1
System diagnostics.xml
Not
Applicable
13,539
01-Apr-2009
19:06
Not
Applicable
SP1
System performance.xml
Not
Applicable
4,830
01-Apr-2009
19:06
Not
Applicable
SP1
For all supported x86-based versions of Windows Server 2008 SP2 and of Windows Vista SP2
Collapse this tableExpand this table
File name
File version
File
size
Date
Time
Platform
SP requirement
Pdh.dll
6.0.6002.22137
242,688
15-May-2009
12:52
x86
SP2
Pla.dll
6.0.6002.22137
1,502,208
15-May-2009
12:52
x86
SP2
Plamig.dll
6.0.6002.22137
96,256
15-May-2009
10:27
x86
SP2
Plasrv.exe
6.0.6002.22137
7,680
15-May-2009
10:27
x86
SP2
Report.system.common.xml
Not
Applicable
1,927
03-Apr-2009
21:56
Not
Applicable
SP2
Report.system.configuration.xml
Not
Applicable
27,570
03-Apr-2009
21:56
Not
Applicable
SP2
Report.system.cpu.xml
Not
Applicable
4,438
03-Apr-2009
21:56
Not
Applicable
SP2
Report.system.diagnostics.xml
Not
Applicable
7,242
03-Apr-2009
21:56
Not
Applicable
SP2
Report.system.disk.xml
Not
Applicable
3,198
03-Apr-2009
21:56
Not
Applicable
SP2
Report.system.memory.xml
Not
Applicable
4,822
03-Apr-2009
21:56
Not
Applicable
SP2
Report.system.network.xml
Not
Applicable
5,088
03-Apr-2009
21:56
Not
Applicable
SP2
Report.system.performance.xml
Not
Applicable
471
03-Apr-2009
21:56
Not
Applicable
SP2
Report.system.summary.xml
Not
Applicable
738
03-Apr-2009
21:56
Not
Applicable
SP2
Rules.system.common.xml
Not
Applicable
3,059
03-Apr-2009
21:56
Not
Applicable
SP2
Rules.system.configuration.xml
Not
Applicable
288,269
03-Apr-2009
21:56
Not
Applicable
SP2
Rules.system.cpu.xml
Not
Applicable
9,062
03-Apr-2009
21:56
Not
Applicable
SP2
Rules.system.diagnostics.xml
Not
Applicable
177,150
03-Apr-2009
21:56
Not
Applicable
SP2
Rules.system.disk.xml
Not
Applicable
6,251
03-Apr-2009
21:56
Not
Applicable
SP2
Rules.system.finale.xml
Not
Applicable
7,036
03-Apr-2009
21:56
Not
Applicable
SP2
Rules.system.memory.xml
Not
Applicable
12,915
03-Apr-2009
21:56
Not
Applicable
SP2
Rules.system.network.xml
Not
Applicable
3,357
03-Apr-2009
21:56
Not
Applicable
SP2
Rules.system.performance.xml
Not
Applicable
3,434
03-Apr-2009
21:56
Not
Applicable
SP2
Rules.system.summary.xml
Not
Applicable
18,549
03-Apr-2009
21:56
Not
Applicable
SP2
System diagnostics.xml
Not
Applicable
13,539
03-Apr-2009
21:56
Not
Applicable
SP2
System performance.xml
Not
Applicable
4,830
03-Apr-2009
21:56
Not
Applicable
SP2
For all supported Itanium-based versions of Windows Server 2008
Collapse this tableExpand this table
File name
File version
File
size
Date
Time
Platform
SP
requirement
Service branch
Pdh.dll
6.0.6001.22434
664,576
15-May-2009
12:53
IA-64
SP1
Not
Applicable
Pla.dll
6.0.6001.22434
3,428,352
15-May-2009
12:53
IA-64
SP1
Not
Applicable
Plamig.dll
6.0.6001.22434
239,104
15-May-2009
12:54
IA-64
SP1
Not
Applicable
Plasrv.exe
6.0.6001.22434
16,384
15-May-2009
10:36
IA-64
SP1
Not
Applicable
Report.system.common.xml
Not
Applicable
1,927
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Report.system.configuration.xml
Not
Applicable
27,570
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Report.system.cpu.xml
Not
Applicable
4,438
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Report.system.diagnostics.xml
Not
Applicable
7,242
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Report.system.disk.xml
Not
Applicable
3,198
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Report.system.memory.xml
Not
Applicable
4,822
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Report.system.network.xml
Not
Applicable
5,088
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Report.system.performance.xml
Not
Applicable
471
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Report.system.summary.xml
Not
Applicable
738
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.common.xml
Not
Applicable
3,059
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.configuration.xml
Not
Applicable
288,269
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.cpu.xml
Not
Applicable
9,062
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.diagnostics.xml
Not
Applicable
177,150
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.disk.xml
Not
Applicable
6,251
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.finale.xml
Not
Applicable
7,036
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.memory.xml
Not
Applicable
12,915
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.network.xml
Not
Applicable
3,357
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.performance.xml
Not
Applicable
3,434
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.summary.xml
Not
Applicable
18,549
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
System diagnostics.xml
Not
Applicable
13,539
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
System performance.xml
Not
Applicable
4,830
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Pdh.dll
6.0.6001.22434
242,688
15-May-2009
13:01
x86
SP1
WOW
Pla.dll
6.0.6001.22434
1,502,208
15-May-2009
13:01
x86
SP1
WOW
Plamig.dll
6.0.6001.22434
96,256
15-May-2009
13:02
x86
SP1
WOW
For all supported Itanium-based versions of Windows Server 2008 SP2
Collapse this tableExpand this table
File name
File version
File
size
Date
Time
Platform
SP
requirement
Service branch
Pdh.dll
6.0.6002.22137
664,576
15-May-2009
12:42
IA-64
SP2
Not
Applicable
Pla.dll
6.0.6002.22137
3,428,352
15-May-2009
12:42
IA-64
SP2
Not
Applicable
Plamig.dll
6.0.6002.22137
239,104
15-May-2009
12:43
IA-64
SP2
Not
Applicable
Plasrv.exe
6.0.6002.22137
16,384
15-May-2009
10:27
IA-64
SP2
Not
Applicable
Report.system.common.xml
Not
Applicable
1,927
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Report.system.configuration.xml
Not
Applicable
27,570
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Report.system.cpu.xml
Not
Applicable
4,438
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Report.system.diagnostics.xml
Not
Applicable
7,242
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Report.system.disk.xml
Not
Applicable
3,198
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Report.system.memory.xml
Not
Applicable
4,822
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Report.system.network.xml
Not
Applicable
5,088
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Report.system.performance.xml
Not
Applicable
471
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Report.system.summary.xml
Not
Applicable
738
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Rules.system.common.xml
Not
Applicable
3,059
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Rules.system.configuration.xml
Not
Applicable
288,269
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Rules.system.cpu.xml
Not
Applicable
9,062
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Rules.system.diagnostics.xml
Not
Applicable
177,150
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Rules.system.disk.xml
Not
Applicable
6,251
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Rules.system.finale.xml
Not
Applicable
7,036
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Rules.system.memory.xml
Not
Applicable
12,915
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Rules.system.network.xml
Not
Applicable
3,357
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Rules.system.performance.xml
Not
Applicable
3,434
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Rules.system.summary.xml
Not
Applicable
18,549
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
System diagnostics.xml
Not
Applicable
13,539
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
System performance.xml
Not
Applicable
4,830
03-Apr-2009
20:54
Not
Applicable
SP2
Not Applicable
Pdh.dll
6.0.6002.22137
242,688
15-May-2009
12:52
x86
SP2
WOW
Pla.dll
6.0.6002.22137
1,502,208
15-May-2009
12:52
x86
SP2
WOW
Plamig.dll
6.0.6002.22137
96,256
15-May-2009
10:27
x86
SP2
WOW
For all supported x64-based versions of Windows Server 2008 and of Windows Vista SP1
Collapse this tableExpand this table
File name
File version
File
size
Date
Time
Platform
SP
requirement
Service branch
Pdh.dll
6.0.6001.22434
307,712
15-May-2009
13:18
x64
SP1
Not
Applicable
Pla.dll
6.0.6001.22434
1,372,672
15-May-2009
13:18
x64
SP1
Not
Applicable
Plamig.dll
6.0.6001.22434
103,424
15-May-2009
13:18
x64
SP1
Not
Applicable
Plasrv.exe
6.0.6001.22434
8,704
15-May-2009
10:58
x64
SP1
Not
Applicable
Report.system.common.xml
Not
Applicable
1,927
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Report.system.configuration.xml
Not
Applicable
27,570
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Report.system.cpu.xml
Not
Applicable
4,438
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Report.system.diagnostics.xml
Not
Applicable
7,242
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Report.system.disk.xml
Not
Applicable
3,198
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Report.system.memory.xml
Not
Applicable
4,822
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Report.system.network.xml
Not
Applicable
5,088
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Report.system.performance.xml
Not
Applicable
471
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Report.system.summary.xml
Not
Applicable
738
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.common.xml
Not
Applicable
3,059
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.configuration.xml
Not
Applicable
288,269
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.cpu.xml
Not
Applicable
9,062
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.diagnostics.xml
Not
Applicable
177,150
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.disk.xml
Not
Applicable
6,251
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.finale.xml
Not
Applicable
7,036
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.memory.xml
Not
Applicable
12,915
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.network.xml
Not
Applicable
3,357
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.performance.xml
Not
Applicable
3,434
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Rules.system.summary.xml
Not
Applicable
18,549
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
System diagnostics.xml
Not
Applicable
13,539
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
System performance.xml
Not
Applicable
4,830
01-Apr-2009
16:19
Not
Applicable
SP1
Not Applicable
Pdh.dll
6.0.6001.22434
242,688
15-May-2009
13:01
x86
SP1
WOW
Pla.dll
6.0.6001.22434
1,502,208
15-May-2009
13:01
x86
SP1
WOW
Plamig.dll
6.0.6001.22434
96,256
15-May-2009
13:02
x86
SP1
WOW
For all supported x64-based versions of Windows Server 2008 SP2 and of Windows Vista SP2
Performance
counter version 2.0 APIs provide a new architecture for collecting counter data
in Windows Vista and in Windows Server 2008. For more information about these
performance counter APIs, visit the following Microsoft Web site:
http://msdn.microsoft.com/en-us/library/aa373102.aspx
For
more information about how an application can provide performance counter data
by using the performance counter version 2.0 APIs, visit the following
Microsoft Web site: http://msdn.microsoft.com/en-us/library/aa965334.aspx