How do I use the Microsoft MemSnap monitoring tool?
  • 01 Apr 2024
  • 1 Minute to read
  • Contributors
  • Dark
    Light
  • PDF

How do I use the Microsoft MemSnap monitoring tool?

  • Dark
    Light
  • PDF

Article summary

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


Was this article helpful?


Changing your password will log you out immediately. Use the new password to log back in.
First name must have atleast 2 characters. Numbers and special characters are not allowed.
Last name must have atleast 1 characters. Numbers and special characters are not allowed.
Enter a valid email
Enter a valid password
Your profile has been successfully updated.