Tools - PerfMon - How to Log memory consumption of a program using Performance Monitor PerfMon in Windows 7 or Windows 2008
Purpose
The page details out the process of logging memory consumption of a program using Performance Monitor (PerfMon) when the OS is Win 7 or Win 2008.
Details
For CAST AIP versions 7.3 onwards
| Steps | Procedure |
|---|---|
| 1 | Open Cast-MS, but do not launch the job. |
| 2 | Start PerfMon by choosing Start >Run and typing “perfmon”. |
| 3 | Right click Performance Monitor » New » Data Collector set [ in case it is disabled for you, you may need to admin privilege] |
| 4 | Add name for Data Collector set. |
| 5 | Add path to save the log. |
| 6 | Select Run as. |
| 7 | Keep selected “Save and close”. |
| 8 | Click Finish. |
| 9 | Now Expand the Data Collector Set » User Defined. |
| 10 | Here you will find the above added data collector set. |
| 11 | Right click on it and go for new. |
| 12 | Add name and select “Performance counter data collector”. |
| 13 | Click Next. |
| 14 | Click Add. |
| 15 | Select Computers. |
| 16 | Expand “process” and select “virtual bytes” as counter. |
| 17 | Select AnaRun in Instances of selected object. (this may need to be jeecmd or dotnetcmd if that is where the issue is) |
| 18 | Click Add and then click OK. |
| 19 | Click Next. |
| 20 | Click Finish. |
| 21 | Now right click on the newly created data collector in the right panel. |
| 22 | Select Properties. |
| 23 | Change the log format from binary to Tab Separated. |
| 24 | Click Apply and then OK. |
| 25 | Now right click on the collector set and go for start. |
| 26 | Now run the analysis job to reproduce the issue. |
| 27 | Once it is reproduced, provide the perfmon log. |
For CAST AIP version 7.0
In this description the program is anaman (this may need to be anarun or jeecmd or dotnetcmd if that is where the issue is)
- Open CAST-MS, but do not launch the job
- Start PerfMon by choosing Start->Run and typing “perfmon”.
- Right click on Performance Monitor » New » Data Collector set [ in case it is disabled for you, you may need to admin privilege]
- Add name for Data Collector set
- Add path to save the log
- Select the Run as
- Keep selected “Save and close”
- Click on Finish
- Now Expand the Data Collector Set » User Defined
- Here you will find the above added data collector set
- Right click on it and go for new
- Add name and select the “Performance counter data collector”
- Click next
- Click on the Add
- select the computers
- Expand “process” and select “virtual bytes” as counter
- Select ANAMAN in Instances of selected object (again this may need to be anarun or jeecmd or dotnetcmd if that is where the issue is) - Most likely you may need to start the CAST-MS analysis and wait for the analysis step to keep going here
- Click on Add and then click on OK
- Click next
- Click on Finish
- Now right click on the newly created data collector in the right panel
- select properties
- Change the log format from binary to Tab Separated
- Click on Apply and then on OK
- Now right click on the collector set and go for start
- Now run the job in CAST-MS to reproduce the issue
- Once it is reproduced, provide us the perfmon log
Notes / Comments
Related Pages