4. Memory Snapshots
This tool can write down the consumption of all memory resources into a log file for later analysis to use, somewhat similar to the "snapshot" way. The default name used for the log file is Memsnap.log, which, of course, can be used in any other name you deem appropriate when creating this log file. In Win98 and CW2KP, System information has a program similar to that of the tool: Dr. Watson, commonly known as "system snapshots." Dr. Watson is too simple in Win98, and in Cw2kp, Dr. Watson's function is greatly enhanced, especially the information listed in the error program is very detailed, if used properly, the effect of dealing with error programs is still ideal. As for the information displayed, most of them are related to the CPU registers and the program's stack, which belongs to the bottom information, and has little reference value to the general users.
The complete syntax for MEMSNAP is:
Memsnap [-t] [g] [-?] [LogFile]
Parameters and Description:
-T: Add tag information, including GMT, data and computer name.
-G: Number of GDI and user resources added
LogFile: Specifies the name of the log file to write as information, and the default name is: Memsnap.log.
5. Memory Monitoring Tool Poolmon.exe
This tool monitors the total number of pages used in memory and the "memory pool" that is not paged to detect if there is a "hole" in memory. The so-called "hole" in memory refers to areas that are intended to be used but are not actually used. Reducing the hole can improve the efficiency of memory and prevent the waste of memory. Unlike with other command-line programs, this program needs to be loaded and run before it can get "online" Tips for help. In addition, this tool also needs a program called GFlags to match, and even more troublesome is that the program gflags, like some of the programs described earlier, has a version that adapts to both environments. This overlapping usage makes the people unfamiliar with their relationships dazzled. Following the use of Poolmon.exe, the version of the command line is introduced first.
1. Before using Poolmon.exe, you must first run gflags. You can type cmd in Start-$#@62, click OK to open the Command line window (note: All command-line programs in this article can first open a DOS-like window with CMD), and then type the command and parameters in the window to execute the command-line program: Gflags-r +PTG The meaning of the parameter is explained when the GUI version of GFlags is introduced.
2. Restart the computer after execution.
3. After the reboot is successful, you can execute Poolmon on the command line with the following syntax:
Poolmon [Itag] [xtag] [switch]
Parameters and Description:
Itag: Lists only the tag names that match the memory pool, and the tag names can contain wildcard characters? or *.
xTAG: List Each tag name that does not match the memory pool, and the tag name can contain wildcard characters? or *.
The following switches are also available after the parameter:
T: Based on alphabetical list. P: Based on the list of memory pool types.
A: A list of sizes based on memory allocations. F: Based on free memory list.
D: List According to the differences between allocation and unassigned. E: Total Totals list.
B: A list of the maximum values to use. M: A list of the maximum values assigned.
L: For the displayed information of those rows, the background color control switch, default is open (that is, different colors to show the difference)
From the impression I verified, following the above steps to perform Poolmon, the Command line window displays information about memory in rows and columns, each row corresponds to a tag name, and the active part of the tag row background color is different from the inactive part. The order of the rows and the total number of rows to be displayed depends on the switch parameters used