--- title: "How do I use the Microsoft MemSnap monitoring tool?" slug: "how-do-i-use-the-microsoft-memsnap-monitoring-tool" updated: 2024-04-01T17:17:08Z published: 2024-04-01T17:17:08Z canonical: "kb.pharos.com/how-do-i-use-the-microsoft-memsnap-monitoring-tool" --- > ## Documentation Index > Fetch the complete documentation index at: https://kb.pharos.com/llms.txt > Use this file to discover all available pages before exploring further. # How do I use the Microsoft MemSnap monitoring tool? How do I use the Microsoft MemSnap monitoring tool? --- Memsnap Overview Product(s): - * Windows Server 2003 R2 - * Windows Server 2003 with SP1 Updated: March 28, 2003 Memsnap.exe: Memory Profiling Tool This command-line tool takes a snapshot of the memory resources being consumed by all running processes and writes this information to a log file. MemSnap logs system memory usage to a log file with the default name of Memsnap.log. However, any file name can be chosen by specifying it at the command line when starting the tool. Corresponding UI There is no corresponding user interface for this tool. Concepts Memory leaks occur when programs allocate memory but neglect to free it when the memory is no longer being used. For more information about memory management and memory leaks, search the Microsoft Developer Network. Before you start 1. Enable pool tagging from the command prompt run this command gflags /r 400 MemSnap Monitoring Tool 1. Could you extract the zip file to c:\memsnap. Note: the zip is password protected, the password is "MemSnap" which is case sensitive. 2. Start memsnap loop using LogPool.bat. 3. Leave this running until the server crashes or needs to reboot due to lack of resources. 4. Zip up the memsnap log file and send the log to me via email ## Related - [How do I use the Print Scout or Tracker Diagnostic Tool called DiagTool.exe?](/how-do-i-use-the-print-scout-or-tracker-diagnostic-tool-called-diagtoolexe.md) - [How to use Microsoft/Sysinternals DebugView application to capture debug output for analysis?](/how-to-use-microsoftsysinternals-debugview-application-to-capture-debug-output-for-analysis.md)