Test an application for memory leaks using the System Information Tool

To test a running process for memory leaks:

  1. In the System Information perspective, select the process to examine.
  2. Switch to the Malloc Information view to compare memory usage at specific times.
  3. Watch the Outstanding column and observe the value to see if it increases, or watch the graph in the Overview History tab.

In the example below, notice the steady growth in the chart. If the memory usage continues to increase over time, then the process is not returning some of the allocated memory.

Screen showing the observed trend of the steady increase in allocated memory.

Since memory leaks can be apparent or hidden, to know exactly what's occurring in your application, use the Memory Analysis tool to automatically find the apparent memory leaks type. A memory leak is considered apparent when the binary address of that heap block (marked as allocated) isn't stored in any of the process memory and current CPU registers any longer.

Last modified: 2013-12-21

comments powered by Disqus