Optimizing heap memory

You can use the following techniques to optimize heap memory usage:

Information on the types of memory leaks found by Memory Analysis, and how to configure the tool to report leaks, is given in Memory leaks. Information on the other three techniques is given in the sections that follow.