Able to log how much memory is used by processes?

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
Ryan
Posts: 7
Joined: Sun Dec 10, 2006 9:28 pm

Able to log how much memory is used by processes?

Post by Ryan »

Hi I am gettin alot of high memory utilization which i want to single out which processes are taking up the memory. How do i configure hostmonitoring to log this?

I source thru the forum and saw an entry to use "Performance Counter test (Process object)"

But there are so many counters to choose from, which one actually accounts for the <Memory\Available MBytes> ?

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

Post by KS-Soft Europe »

So, what exact parameter do you want to monitor: available memory on the system or memory usage by certain process? If you want to monitor available memory, you should use "Memory" object and "Available MBytes" counter. In case of Process, you should use "Process" object and "Working Set" counter for certain process from the "Select instance from the list" listbox. Quote from microsoft:
http://www.microsoft.com/technet/script ... x?mfr=true
==============
Working set size. The working set is the amount of physical memory assigned to a process. If the working set is too small, the process incurs a high number of page faults as it repeatedly accesses the disk drive to locate data not currently in memory. If the working set is too large, fewer page faults occur, but the process retains memory that it no longer needs, and which might be required by other processes. A steady increase in the size of the working set can mean that the process is not releasing memory appropriately.
==============

Actually, "Performance counters" is not much reliable technology, so we recommend to use "WMI" test method instead. To monitor available memory you may use "select AvailableMBytes from Win32_PerfFormattedData_PerfOS_Memory" query. To monitor resource usage by certain process, you may use query like the following: select WorkingSetSize from Win32_Process where Caption='notepad.exe'
http://www.ks-soft.net/hostmon.eng/mfra ... ts.htm#wmi

Regards,
Max
Ryan
Posts: 7
Joined: Sun Dec 10, 2006 9:28 pm

Post by Ryan »

Thanks Max for the prompt reply, :)

I just want to know which process is taking up the bulk of the memory causing the <memory available> to drop drastically.

Correct me if i'm wrong but does the increase in <Working set size> also means that the process requires more memory than currently allocated and thus i should increase the Physical RAM?
KS-Soft Europe
Posts: 2832
Joined: Tue May 16, 2006 4:41 am
Contact:

Post by KS-Soft Europe »

Ryan wrote:I just want to know which process is taking up the bulk of the memory causing the <memory available> to drop drastically.
I think, you may use standard windows Task Manager to figure it out. I do not see a good solution to monitor it using HostMonitor. Of course, it is possible to write some VB or JS script, that should order processes by Memory usage, but Memory usage is a very floating value. For now one process uses the most of memory, after 5 minutes - another. It depends on windows memory manager. I would suggest you to find out what exact process is taking up the bulk of the memory, and then monitor suspecting process using "WMI" test method of HostMonitor.
Ryan wrote:Correct me if i'm wrong but does the increase in <Working set size> also means that the process requires more memory than currently allocated and thus i should increase the Physical RAM?
Actually, WorkingSetSize shows you the same result (but in bytes) as you are able to see in "Mem Usage" column on the "Processes" tab of "Task Manager". A steady increase in the size of the working set can mean that you should increase Physical RAM to avoid significant hard drive usage, but in general case, it means that the process is not releasing memory appropriately and it leads to memory leak.

Regards,
Max
Ryan
Posts: 7
Joined: Sun Dec 10, 2006 9:28 pm

Post by Ryan »

Thanks Max for the detailed and concise reply. :)

:D
Post Reply