Windows Server 2008 R2 – How to Monitor Total RAM Usage with Perfmon

memoryperfmonwindows-server-2008-r2

I am trying to find a good way to get available RAM percentage from perfmon. I can get Available Mbytes but I can't find any way to get the total installed memory on the server or what is in use via perfmon. I can obviously alert on GB but each of my servers have different total RAM so not a great alert.

The way I understand % Committed Bytes is this includes page files on disk so this is not a good indicator.

Any help would be appreciated.

Best Answer

Sadly, there is no default Performance Monitor counter that does this. You will need to consider using WMI to tally the total RAM in a server, then totaling the amount of used RAM versus free RAM, storing that data as it is collected, and then presenting it in a pretty way.

However, that kind of thing has already been done for you in the form of the basic features of most NMSs.

P.S. If you're extremely adventurous, you could try writing custom perfmon counters.