how to get memory usage

A

auldh

i have need to build a program in C# that will collect specific data for a
service on remote machines.

i see how i can use "win32_process" to get threadcount and handlecount of a
service. but i don't see how to get the memory usage as seen in the task
manager.

i have a service that runs on multiple servers. i need to get a snap shot of
the services: threadcount, handlecount and memory usages.

i like it so that the program runs on one machine and then polls those
machines i specify and write the data to the file.

the help i need is how to get a remote machine memory usage of a give service?
 
W

Willy Denoyette [MVP]

auldh said:
i have need to build a program in C# that will collect specific data for a
service on remote machines.

i see how i can use "win32_process" to get threadcount and handlecount of
a
service. but i don't see how to get the memory usage as seen in the task
manager.

i have a service that runs on multiple servers. i need to get a snap shot
of
the services: threadcount, handlecount and memory usages.

i like it so that the program runs on one machine and then polls those
machines i specify and write the data to the file.

the help i need is how to get a remote machine memory usage of a give
service?



Don't know exactly what "memory" you are looking for but Win32_Process has
all memory related properties you need.


Willy.
 
A

auldh

Willy,
if you look at the task manager you see the memory usage column.
but in the "win32_process" i don't see how to find the actual memory ussage
of the process.
 
W

Willy Denoyette [MVP]

auldh said:
Willy,
if you look at the task manager you see the memory usage column.
but in the "win32_process" i don't see how to find the actual memory
ussage
of the process.


Taskman's Memory Usage = WorkingsetSize.

Willy.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Top