Hi,
We have a process with a memory leak that we need to monitor. The memory leak is only in virtual memory. I try to find a way to monitor the virtual memory to have a value similar to the value that we have in Task Manager but I can't find how I can have that ...
Any ideas ?
Thanks
Process virtual memory check
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Re: Process virtual memory check
You may use "WMI" test method with the one of the following queries:mlimtl wrote:We have a process with a memory leak that we need to monitor. The memory leak is only in virtual memory. I try to find a way to monitor the virtual memory to have a value similar to the value that we have in Task Manager but I can't find how I can have that ...
Code: Select all
Select PageFileUsage from Win32_Process where Caption = 'some_process_name.exe'
Code: Select all
Select VirtualSize from Win32_Process where Caption = 'some_process_name.exe'
VirtualSize represents the current size of the virtual address space that a process is using, not the physical or virtual memory actually used by the process.
http://www.ks-soft.net/hostmon.eng/mfra ... ts.htm#wmi
Also you may use "Performance Counter" test method to monitor "Process" oblect. You should select "Page File Bytes" or "Virtual Bytes" counters for the certain process.
http://www.ks-soft.net/hostmon.eng/mfra ... erfcounter
Regards,
Max
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact:
Hm. Actually, I do not understand why you have to divide the result of PageFileUsage? According to the Microsoft, PageFileUsage counter is specified in Kilobytes. TaskManager shows the "VM Size" columns in Kilobytes either. In case of "Performance counter" test method, you really need to divide "Page File Bytes" by 1024 to get Kilobytes. But I am wondering why 100000?mlimtl wrote:PageFileUsage is perfect for me. Now I only need to explain to the support team to divide the result by 100000 to get an close approx of what is on the Task Manager.
Regards,
Max
-
- Posts: 2832
- Joined: Tue May 16, 2006 4:41 am
- Contact: