Groups | Blog | Home
all groups > dotnet sdk > february 2005 >

dotnet sdk : total memory available


Billg_sd
2/14/2005 1:05:02 PM
Is there an SDK or other DotNet call to determine the total amount of
physical RAM installed on a system?

If my process consomes more than X% of system resources, I'd like to warn
the user. This would also be usefull for my installer. I could warn the user
that they don't have enough RAM installed to run efficiently.



Billg_sd
2/14/2005 2:35:23 PM
Hi,

Thanks for the feedback. I'll give em a try. I just thought there would be
something in System.Diagnostics or System.Environment

Thanks,

--Bill

[quoted text, click to view]
gyurisc
2/14/2005 11:21:07 PM
Hi,

How about using Performance counters
(System.Diagnostics.PerformanceCounter)?
PerformanceCounter memory = new PerformanceCounter("Memory", "Available
KBytes");


[quoted text, click to view]

AddThis Social Bookmark Button