Nova Patents
US8522216B2

Memory leak detection

Summary by NHIP

Memory Leak Detection

The method collects instance count data for multiple classes in a memory heap and calculates a correlation coefficient between 1.0 and 1.0 to identify contributors. This process initializes mean instance size and instance count values, then uses class histograms containing names, counts, and cumulative memory sizes to determine growth relevance.

Claim Score by NHIP

Read claim 1, the broadest

Abstract

Embodiments of the invention provide systems and methods for detecting an analyzing memory leaks. According to one embodiment, a method of detecting a memory leak can comprise collecting instance count data for a number of instances of a plurality of classes in a memory heap. A correlation coefficient can be calculated for each of the plurality of classes in the memory heap. The correlation coefficient can represent a relevance of the class to a growth of the memory heap. Classes contributing to the growth of the memory heap can then be identified based on the correlation coefficient.

US8522216B2, drawing sheet 1
Sheet 1 of 6

Term

5.3 yearsleft in the term

Expires 26 January 2032, including 632 days of term adjustment.

  1. Priority and filed
  2. Granted
  3. Today
  4. Expires

21 claims: 3 independent, 18 dependent

  1. 1
    Broadest claimClaim Score 64, broad(NHIP)A method for detecting a memory leak, the method comprising:collecting instance count data for a number of instances of a plurality of classes in a memory heap;calculating a correlation coefficient for each of the plurality of classes in the memory heap, the correlation coefficient representing a relevance of the class to a growth of the memory heap and wherein calculating the correlation coefficient comprises initializing mean instance size and instance count values for each class, calculating the mean instance size for each class, and accumulating the instance count for each class;and identifying classes contributing to the growth of the memory heap based on the correlation coefficient.
  2. 8
    A system comprising:a processor;and a memory communicatively couple with and readable by the processor and having stored therein a series of instructions which, when executed by the processor, cause the processor to detect a memory leak by collecting instance count data for a number of instances of a plurality of classes in a memory heap, calculating a correlation coefficient for each of the plurality of classes in the memory heap, the correlation coefficient representing a relevance of the class to a growth of the memory heap and wherein calculating the correlation coefficient comprises initializing mean instance size and instance count values for each class, calculating the mean instance size for each class, and accumulating the instance count for each class, and identifying classes contributing to the growth of the memory heap based on the correlation coefficient.
  3. 15
    A machine-readable hardware storage device comprising a series of instructions stored thereon which, when executed by a processor, cause the processor to detect a memory leak by:collecting instance count data for a number of instances of a plurality of classes in a memory heap;calculating a correlation coefficient for each of the plurality of classes in the memory heap, the correlation coefficient representing a relevance of the class to a growth of the memory heap and wherein calculating the correlation coefficient comprises initializing mean instance size and instance count values for each class, calculating the mean instance size for each class, and accumulating the instance count for each class;and identifying classes contributing to the growth of the memory heap based on the correlation coefficient.