Jump to content

How do I measure how much memory a process is consuming in Windows?

- - - - -

This topic has been archived. This means that you cannot reply to this topic.
3 replies to this topic

#1
RouterDCS

RouterDCS

    Newbie

  • Members
  • Pip
  • 2 posts
I have a program and its associated process and I want to monitor how much memory it is allocating (all memory dynamically allocated to it by the operating system which in this case is Windows XP). I know that I can monitor this through Performance Logging -> Processes, but I don't know which instrument I should look at. What parameter should I use to monitor memory consumed by the program?

#2
Termana

Termana

    Writes binary right handed and hex left handed

  • Members
  • PipPipPipPipPipPipPipPipPip
  • 4,057 posts
Have you considered using the task manager - or do you need it logged? Posted via CodeCall Mobile

#3
RouterDCS

RouterDCS

    Newbie

  • Members
  • Pip
  • 2 posts
I have been monitoring through task manager and also Start -> Control Panel -> Administrative Tools -> Performance -> Counter Logs -> Performance Object -> Process from there I can select:

Handle count
ID Process
IO Data Bytes / Sec
IO Data Operations / sec
Page Faults / Sec
Page File Bytes
Page File Bytes Peak
Pool Paged Bytes
Priority Base
Private Bytes
Thread Count
Virtual Bytes
Virtual Bytes Peak
Working Set
Working Set Peak

Would any of these tell me how much memory the program has dynamically allocated for itself on the heap?

#4
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,713 posts
I would think Virtual Bytes contains the amount of bytes allocated in virtual memory; Private Bytes probably contains the number of bytes allocated in RAM.