IP Library › Granted Patent US 7,496,795
Granted Patent B2
US 7,496,795 · App. 11/143,032 · Granted Feb 24, 2009

Method, system, and computer program product for light weight memory leak detection

Assignee: International Business Machines Corporation
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 7,496,795
App. No.
11/143,032
Granted
Feb 24, 2009
Kind
B2
Abstract

The present invention provides a method, system, and computer program product for light weight memory leak detection. A method in accordance with an embodiment of the present invention comprises: obtaining raw free memory statistics; approximating free memory after garbage collection from the raw free memory statistics; and analyzing the approximated free memory after garbage collection to identify a potential memory leak. A method in accordance with another embodiment of the present invention comprises the steps of: obtaining raw free memory statistics; generating a vector of memory leak indicators from the raw free memory statistics; comparing the vector of memory leak indicators against a plurality of vectors of the same memory leak indicators for known memory leak scenarios; and identifying a potential memory leak based on the comparison.

Claims (36)

1. A method for memory leak detection, comprising:

obtaining raw free memory statistics;

approximating free memory after garbage collection from the raw free memory statistics by:

separating the raw free memory statistics into a plurality of periods, wherein each period includes possible garbage collection activity; and

summarizing the raw free memory statistics in each period to a single data point, wherein the single data point approximates the free memory after garbage collection for that period; and

analyzing the approximated free memory after garbage collection to identify a potential memory leak.

2. The method of claim 1 , further comprising:

performing at least one action to address the potential memory leak.

3. The method of claim 2 , wherein the at least one action is performed automatically.

4. The method of claim 3 , wherein the at least one action comprises:

providing a notification of the potential memory leak.

5. The method of claim 3 , wherein the at least one action comprises:

taking heap dumps.

6. The method of claim 1 , further comprising:

separating the single data points for the plurality of periods into a plurality of longer periods; and

analyzing the single data points in each of the longer periods for downward memory trends.

7. The method of claim 1 , wherein the step of analyzing the approximated free memory after garbage collection to identify a potential memory leak further comprises:

analyzing short and long periods of data corresponding to the approximated free memory after garbage collection to identify a potential memory leak.

8. A system, comprising at least one computer, for memory leak detection, comprising:

a system for obtaining raw free memory statistics;

a system for approximating free memory after garbage collection from the raw free memory statistic, the system for approximating comprising:

a system for separating the raw free memory statistics into a plurality of periods, wherein each period includes possible garbage collection activity; and

a system for summarizing the raw free memory statistics in each period to a single data point, wherein the single data point approximates the free memory after garbage collection for that period; and

a system for analyzing the approximated free memory after garbage collection to identify a potential memory leak.

9. The system of claim 8 , further comprising:

a system for performing at least one action to address the potential memory leak.

10. The system of claim 9 , wherein the at least one action is performed automatically.

11. The system of claim 10 , wherein the at least one action comprises:

providing a notification of the potential memory leak.

12. The system of claim 10 , wherein the at least one action comprises:

taking heap dumps.

13. The system of claim 8 , further comprising:

a system for separating the single data points for the plurality of periods into a plurality of longer periods; and

a system for analyzing the single data points in each of the longer periods for downward memory trends.

14. The system of claim 8 , wherein the system for analyzing the approximated free memory after garbage collection to identify a potential memory leak further comprises:

a system for analyzing short and long periods of data corresponding to the approximated free memory after garbage collection to identify a potential memory leak.

Assignments (1)
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Aug 24, 2005
From: MINSHALL, ROBBIE J.; WILLENBORG, RUTH E.
To: INTERNATIONAL BUSINESS MACHINES CORPORATION
Reel/Frame 016663/0110 →
Continuity (1)
Related Publication 20060277440A1 · Dec 7, 2006