Finding where excessive memory is being used

Top  Previous  Next

The best strategy for discovering causes of excess memory usage and eliminating the problem involves a mixture of problem reduction and the techniques below.  The problem reduction strategy will not be discussed here (see the Small to Large chapter).  Beyond that the strategies one can used involve

Tracking program memory use through screen watching and LOG file / process window contents examination.
Tracking program memory use characteristics through profile and profiletol usage.
Tracking memory use at a point through the DMPSYM option.
Finding problems by searching and code isolation.

Each is described below.

 

Screen watching and LOG file examination

Profile

Memory use dumps: Dmpsym

Looking within memory hogs to find offending term

My code won't work - searching