A method and system for tracking memory usage by software agents operating
in a computer system is disclosed. A memory resource tracking application
is executed in the system. When an operating software agent is detected,
a determination is made about the memory consumed by the running agent.
Measurements are made at periodic intervals to determine if the agent has
ended. When the agent has ended, all memory allocations associated with
the agent are added together to arrive at a peak memory usage for the
agent.