Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

I'm trying to use the Performance Counters so I can log the total RAM usage on a particular machine. I've got a sneaky feeling that it's maxing out (due to some bad code) ... server has a heart attack and it finally recovers a few mins later.

So to confirm this i'm trying to log it's memory usage.

I'm not sure which counter it is.

I'm used to using the Memory Usage graph that's part of the Task Manager.

Any suggestions?

share|improve this question

1 Answer 1

up vote 3 down vote accepted

First you need to understand that RAM usage is related to but not the same as memory usage. See my answer to this question for an explanation of how memory works in windows. That being said the counter that measures physical ram in use (commmit charge peak) is \Memory\Committed Bytes. You should see page faults long before the system actually uses up all the physical ram so check for page faults as well.

Before you start working on ram issues you should watch this webcast on how to troubleshoot memory problems in windows. Also see Pushing the Limits of Windows: Physical Memory

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.