Method and apparatus for determining leaks in a Java heap
Abstract
An improved method, apparatus, and computer instructions for identifying a memory leak in a heap. Prior to the start of the observation period, all live objects in the heap are identified to form a set of live objects by altering an indicator in the live objects. After running the system for the required amount of time or until completion of the event being monitored, the system is used to obtain the list of live objects without the altered indicator. Live objects without the altered indicators form the most likely objects associated with a memory leak.
Interactive Citation Constellation Global Citation Ranking
Interactive SVG Citation Constellation renders in Rust/WebAssembly. Prior art cited: 45 · Forward citations: 7.
Claims (1 — 1 Independent, 0 Dependent)
- Claim 1Independent Claim
A computer implemented method in a data processing system for identifying a memory leak in a heap, wherein the heap comprises a plurality of objects, the computer implemented method comprising: responsive to a processor completing a mark-sweep-compact operation in the heap, clearing an indicator associated with each object in the plurality of objects, wherein the indicator is located in a bit in a header of the each object; initiating a marking operation at a beginning of a user-defined observation period; responsive to an allocation of memory to a new object during the user-defined observatio
Technical Overview & Description
Full multi-page specification text is archived at the issuing office. Read complete official specification ↗
Cited By — Indexed Forward Citations (7 of 7 total)
References Cited — Backward Prior Art (45)
Non-Patent Literature (5)
- Beebee, Jr., William S., et al., "An Implementation of Scoped Memory for Real-Time Java", EMSOFT 2001, LNCS 2211, Springer-Verlag, Berlin, Germany, © 2001, pp. 289-305.
- Berlea, Alexandru, "Garbage Collection for the Delft Java Processor", Politehnica University of Bucharest, Delft University of Technology, Master's Thesis, Aug. 18, 1999, pp. i-x and 1-82.
- Blackburn, Stephen M., et al., "Myths and Realities: The Performance Impact of Garbage Collection", SIGMETRICS/Performance '04, New York, NY, Jun. 12-16, 2004, pp. 25-36.
- Blackburn, Stephen M., et al., "Ulterior Reference Counting: Fast Garbage Collection Without a Long Wait", OOPSLA '03, Anaheim, CA, Oct. 26-30, 2003, pp. 344-358.
- Borman, Sam, "Sensible Sanitation-Understanding the IBM Java Garbage Collector, Part 1: Object Allocation", developerWorks, Aug. 1, 2002, 8 pages, downloaded from: www-106.ibm.com/developerworks/ibm/library/i-garbage1/.