Possible Duplicate:
Total RAM % from perfmon Windows Server 2008 R2
I'm trying to get the percent of memory used from PerfMon. Essentially, I want to see the number that's available from Windows Task Manager > Performance. (The Blue line that shows the percent of memory as a ratio to the total in the machine.)
I see that the counter "Available MBytes" can be used to see how much bytes are free, but I'm going to program this across multiple servers, and I won't necessarily have access to the server total RAM. (I could maintain a map from server_name > total_RAM, but that seemed a bit awkward.)
I also see that the "Committed Bytes" represents the total bytes being used, so I can add this to the free bytes to get the ratio, but I wanted to know if there was a more straightforward way.
Ideas? (I'm running Windows 7 on my machine, and the servers are Windows Server 2008.)