473,394 Members | 1,935 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,394 software developers and data experts.

how to get memory usage

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?
Jun 27 '08 #1
3 3365
"auldh" <au***@discussions.microsoft.comwrote in message
news:A6**********************************@microsof t.com...
>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.

Jun 27 '08 #2
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.
"Willy Denoyette [MVP]" wrote:
"auldh" <au***@discussions.microsoft.comwrote in message
news:A6**********************************@microsof t.com...
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.

Jun 27 '08 #3
"auldh" <au***@discussions.microsoft.comwrote in message
news:51**********************************@microsof t.com...
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.


Jun 27 '08 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

8
by: rbt | last post by:
Would a Python process consume more memory on a PC with lots of memory? For example, say I have the same Python script running on two WinXP computers that both have Python 2.4.0. One computer has...
5
by: Justice | last post by:
Currently I'm doing some experimenting with the XMLHTTP object in Javascript. Now, the XMLHttp object is asynchronous (at least in this case), and the following code causes a significant memory...
2
by: tomvr | last post by:
Hello I have noticed some 'weird' memory usage in a vb.net windows app The situation is as follows I have an app (heavy on images) with 2 forms (actually there are more forms and on starting...
6
by: Tom | last post by:
We have a VERY simple .NET C# Form Application, that has about a 23MB Memory Footprint. It starts a window runs a process and does a regular expression. I have done a GC.Collect to make sure that,...
2
by: Jarvis | last post by:
I've made a testing program to test the memory usage of some Data Forms. I create a MDI parent form with one single MDI child form, which is a Data Form generated by .NET Data Form Wizard. To...
3
by: Ian Taite | last post by:
Hello, I'm exploring why one of my C# .NET apps has "high" memory usage, and whether I can reduce the memory usage. I have an app that wakes up and processes text files into a database...
20
by: Philip Carnstam | last post by:
How come .Net applications use so much memory? Every application I compile uses at least 10 MB of memory, even the ones consisting of only a form and nothing else. If I minimize them though the...
13
by: Ilias Lazaridis | last post by:
How to detect memory leaks of python programms, which run in an environment like this: * Suse Linux 9.3 * Apache * mod_python The problem occoured after some updates on the infrastructure....
1
by: yzghan | last post by:
Hi all, I feel that my python script is leaking memory. And this is a test I have: log.write(" " + "test() ... memory usage: " + " ".join(repr(i/(1024*1024)) for i in getMemInfo()) + "\n") m...
1
by: Jean-Paul Calderone | last post by:
On Tue, 22 Apr 2008 14:54:37 -0700 (PDT), yzghan@gmail.com wrote: The test doesn't demonstrate any leaks. It does demonstrate that memory usage can remain at or near peak memory usage even after...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.