Article ID: 177415 - Last Review: February 25, 2008 - Revision: 6.1 How to use Memory Pool Monitor (Poolmon.exe) to troubleshoot kernel mode memory leaksThis article was previously published under Q177415 On This PageINTRODUCTION This article describes how to use the Memory Pool Monitor
utility, Poolmon.exe, as a troubleshooting tool to monitor memory tags. Poolmon displays data that the operating system collects about memory allocations from the system paged and nonpaged kernel pools and about the memory pools used for Terminal Services sessions. The data is grouped by pool allocation tag. This information can be used by Microsoft Technical Support to find kernel mode memory leaks. A memory leak is caused by an application or by a process that allocates memory for use but that does not free the memory when the application or process finishes. Therefore, available memory is completely used over time. Frequently, this condition causes the system to stop functioning correctly. In this case, the following events may be logged in the System log: Event ID: 2020 Event ID: 2019 MORE INFORMATION The first section that follows describes how to enable tag
mode for using Poolmon. The second section describes how to gather the
information for troubleshooting by using Poolmon. Enabling Tag ModeBefore running PoolMon, you must enable pool tagging and then restart your computer. The pool tagging feature collects and calculates statistics about pool memory sorted by the tag value of the memory allocation.Note It is not necessary to enable pool tagging in Windows Server 2003 as it is enabled by default. To enable pool tagging on a Windows NT 4.0-based, Windows 2000-based, or Windows XP-based computer, use one of the following methods: Method 1: Edit the RegistryTo change the registry value that enables tag mode for Poolmon.exe, follow these steps.Important This section, method, or task contains steps that tell you how to modify the registry. However, serious problems might occur if you modify the registry incorrectly. Therefore, make sure that you follow these steps carefully. For added protection, back up the registry before you modify it. Then, you can restore the registry if a problem occurs. For more information about how to back up and restore the registry, click the following article number to view the article in the Microsoft Knowledge Base: 322756
(http://support.microsoft.com/kb/322756/
)
How to back up and restore the registry in Windows
Method 2: Use the Gflags.exe UtilityYou can also use the Global Flags Editor (Gflags.exe) utility to enable pool tagging. Gflags.exe is available in the Windows NT 4.0 Resource Kit and in the \Support\Tools folder of Windows 2000, Windows XP, and Windows Server 2003 CD-ROMs.Note Because pool tagging is permanently enabled in Windows Server 2003, the Enable Pool Tagging check box in the Global Flags dialog box is dimmed and commands to enable or disable pool tagging fail. To make the change by using Gflags.exe, follow these steps:
Using Poolmon to Collect InformationPoolMon displays pool tag information within a command window. Use the arrow keys or the PAGE UP and PAGE DOWN keys to display all the tag information returned by the tool.Poolmon.exe is available in the Windows NT 4.0 Resource Kit and in the \Support\Tools folder of Windows 2000, Windows XP, and Windows Server 2003 CD-ROMs. Use the following steps to copy and store the tag information. Repeat these steps for two hours at 15 minute intervals. Append each update to the end of the Notepad file.
P - Sorts tag list by Paged, Non-Paged, or mixed. Note that P cycles through each one.
For more information, click the following article number to view the article in the Microsoft Knowledge Base:
B - Sorts tags by max byte usage. M - Sorts tags by max byte allocation. T - Sort tags alphabetically by tag name. E - Display Paged, Non-paged total across bottom. Cycles through. A - Sorts tags by allocation size. F - Sorts tags by "frees". S - Sorts tags by the differences of allocs and frees. E - Display Paged, Non-paged total across bottom. Cycles through. Q - Quit. 298102
(http://support.microsoft.com/kb/298102/
)
How to find pool tags that are used by third-party drivers
APPLIES TO
| Article Translations
|

Back to the top
