The Performance Monitor (perfmon.exe) has counters for process page file usage.
- Load perfmon up by either running "perfmon" on a command line, or by selecting "Performance Monitor" under Administrative Tools.
- Expand "Monitoring Tools" in the left column and select "Performance Monitor."
- Right-click on the graph to the right and select, "Add Counters."
- Scroll down the list of available counters to "Process."
- Click on the down-arrow icon to the right of "Process."
- Click on "Page File Bytes" under "Process"
- Select the desired process to monitor from the "Instances of selected objects" list.
- Click the "Add" button to put the counter under the "Added counters" list on the right.
- Click the "OK" button.
That will add a line that graphs the page file usage of the selected process, so it may not be very useful. You can use PowerShell to pull the data numerically:
Get-Counter '\Process(<process name>)\Page File Bytes'
Where <process name>
is the name of the process according to Windows. You can get them all by using a wildcard:
Get-Counter '\Process(*)\Page File Bytes'
All processes will be listed, and the total usage for all processes will be at the bottom, with a process name of "_total".
Substitute other process counters to get the memory metrics that you are looking for.