Process virtual memory check

All questions related to installations, configurations and maintenance of Advanced Host Monitor (including additional tools such as RMA for Windows, RMA Manager, Web Servie, RCC).
Post Reply
mlimtl
Posts: 41
Joined: Wed Apr 05, 2006 2:11 pm

Process virtual memory check

Post by mlimtl »

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
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Re: Process virtual memory check

Post by KS-Soft Europe »

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 ...
You may use "WMI" test method with the one of the following queries:

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' 
According to the Microsoft, PageFileUsage represents the amount of page file space that a process is using currently. This value is consistent with the VMSize value in TaskMgr.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
mlimtl
Posts: 41
Joined: Wed Apr 05, 2006 2:11 pm

Post by mlimtl »

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.

Thanks
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

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.
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?

Regards,
Max
mlimtl
Posts: 41
Joined: Wed Apr 05, 2006 2:11 pm

Post by mlimtl »

you're right, 1024.

100 000 is the amount you obtain when you type 1000 on an old laptop with dirty sticking keys, bigs fingers and no attention span :P

Thanks
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

mlimtl wrote:100 000 is the amount you obtain when you type 1000 on an old laptop with dirty sticking keys, bigs fingers and no attention span :P
Ok. I understood.
It was Friday's afternoon - TGIF ;-)
Have a nice weekend. :-)

Regards,
Max
Post Reply