Finding that memory leak using Windows NT 4.0

By | 2006-11-22

Much has been written about using Performance Monitor to detect and isolate memory leaks. Two KB articles on the subject are Q130926 and Q150934.

While these standard protocols work, the hit and miss method of finding the leaking process can be very time consuming. Here is an alternate method:

  1. Start PMON.EXE from the Resource Kit.
    • Monitor Paged and Non-Paged pool usage (last 2 items on the 2nd row). If these are increasing over time, you have a memory leak.
    • Monitior the commit counters on the 2nd row. Increasing numbers over serval hours indicate a probable leak.
    • Monitor the Commit Charge column. The process with the leak will have an increasing value.
  2. To make it easier to monitor, copy the output to the clipboard and paste it into notepad.

Do this about once an hour over the duration of your testing.

Author: dwirch

Derek Wirch is a seasoned IT professional with an impressive career dating back to 1986. He brings a wealth of knowledge and hands-on experience that is invaluable to those embarking on their journey in the tech industry.

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.