I'm hunting of a memory pool leak using poolmon. In the KB article, they explain how to capture the output manually using cut&paste. Isn't there a way to automate this?
Since the tool doesn't seem to support it, my idea was to run two command prompts (one for paged and one for nonpaged pools), and use a tool to make an automatic screenshot. If this was possible, which tool would you suggest? Is there a tool that can cut the text out of a command prompt without manual intervention?
In version 5.2.3790.0 (from the W2K3 RTM support tools) you can specify a "snapshot" file:
It will write both the paged and non-paged pool entries to this file.
I'd use scheduled tasks to run the following on a recurring basis:
Set POOLMON to point to the path of Poolmon.exe and OUTDIR to point to whatever directory you want output written to and you'll get output files of the format:
Throw that script into a scheduled task and you're in business.
The above works in Ireland. Explorer will auto open the folder for viewing. Logs are dumped every 30min.