If the server is experiencing Non paged pool (NPP) memory leak or a Paged pool (PP) memory leak you are most likely to see the following event id’s respectively in the System Event log:
Let’s load up our memory dump file in the Windows Debugging tool (WINDBG.EXE). If you have never set up the Debugging Tools and configured the symbols, you can find instructions on the Debugging Tools for Windows Overview page. Once we have our dump file loaded type !vm in the prompt to display the Virtual Memory Usage for the system. The output will be similar to what is below:
kd> !vm
*** Virtual Memory Usage ***
Physical Memory: 917085 ( 3668340 Kb)
Page File: \??\C:\pagefile.sys
Current: 4193280 Kb Free Space: 4174504 Kb
Minimum: 4193280 Kb Maximum: 4193280 Kb
Page File: \??\D:\pagefile.sys
Current: 4193280 Kb Free Space: 4168192 Kb
Minimum: 4193280 Kb Maximum: 4193280 Kb
Available Pages: 777529 ( 3110116 Kb)
ResAvail Pages: 864727 ( 3458908 Kb)
Locked IO Pages: 237 ( 948 Kb)
Free System PTEs: 17450 ( 69800 Kb)
Free NP PTEs: 952 ( 3808 Kb)
Free Special NP: 0 ( 0 Kb)
Modified Pages: 90 ( 360 Kb)
Modified PF Pages: 81 ( 324 Kb)
NonPagedPool Usage: 30294 ( 121176 Kb)
NonPagedPool Max: 32640 ( 130560 Kb)
********** Excessive NonPaged Pool Usage *****
PagedPool 0 Usage: 4960 ( 19840 Kb)
PagedPool 1 Usage: 642 ( 2568 Kb)
PagedPool 2 Usage: 646 ( 2584 Kb)
PagedPool 3 Usage: 648 ( 2592 Kb)
PagedPool 4 Usage: 653 ( 2612 Kb)
PagedPool Usage: 7549 ( 30196 Kb)
PagedPool Maximum: 62464 ( 249856 Kb)
Shared Commit: 3140 ( 12560 Kb)
Special Pool: 0 ( 0 Kb)
Shared Process: 5468 ( 21872 Kb)
PagedPool Commit: 7551 ( 30204 Kb)
Driver Commit: 1766 ( 7064 Kb)
Committed pages: 124039 ( 496156 Kb)
Commit limit: 2978421 ( 11913684 Kb)
As you can see, this command provides details about the usage of Paged and NonPaged Pool Memory, Free System PTE’s and Available Physical Memory. As we can see from the output above, this system is suffering from excessive NonPaged Pool usage. There is a maximum of 128MB of NonPaged Pool available and 121MB of this NonPaged Pool is in use:
Our next step is to determine what is consuming the NonPaged Pool. Within the debugger, there is a very useful command called !poolused . We use this command to find the Pool Tag that is consuming our NonPaged Pool. The !poolused 2 command will list out NonPaged Pool consumption, and !poolused 4 lists the Paged Pool consumption. A quick note here; the output from the !poolused commands could be very lengthy as they will list all of the tags in use. To limit the display to the Top 10 consumers, we can use the /t10 switch: !poolused /t10 2 .
Once the tag is identified we can use the steps that we outlined in our previous post, An Introduction to Pool Tags to identify which driver is using that tag. If the driver is out of date, then we can update it. However, there may be some instances where we have the latest version of the driver, and we will need to engage the software vendor directly for additional assistance.
That brings us to the end on this post – in Part Three, we will discuss using Task Manager and the Debugging Tools to troubleshoot Handle Leaks which may be causing Server Hangs.
- Sakthi Ganesh
Share this post : |
|
|
|
|
|
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.