Affiliation:
1. University of California, Irvine, CA
2. Ohio State University, OH
Abstract
A memory leak in a Java program occurs when object references that are no longer needed are unnecessarily maintained. Such leaks are difficult to detect because static analysis typically cannot precisely identify these redundant references, and existing dynamic leak detection tools track and report fine-grained information about individual objects, producing results that are usually hard to interpret and lack precision.
In this article we introduce a novel
container-based
heap-tracking technique, based on the fact that many memory leaks in Java programs occur due to incorrect uses of containers, leading to containers that keep references to unused data entries. The novelty of the described work is twofold: (1) instead of tracking arbitrary objects and finding leaks by analyzing references to unused objects, the technique tracks only containers and directly identifies the source of the leak, and (2) the technique computes a confidence value for each container based on a combination of its memory consumption and its elements' staleness (time since last retrieval), while previous approaches do not consider such combined metrics. Our experimental results show that the reports generated by the proposed technique can be very precise: for two bugs reported by Sun, a known bug in SPECjbb 2000, and an example bug from IBM developerWorks, the top containers in the reports include the containers that leak memory.
Funder
Division of Computing and Communication Foundations
International Business Machines Corporation
Publisher
Association for Computing Machinery (ACM)
Reference50 articles.
1. Performance analysis of idle programs
2. Bell
3. Ca Wily Technology. 2013. Wily introscope leakhunter. http://www.adhoc-international.com/pages/en/structure/download/cawily_introscope2.pdf. Ca Wily Technology. 2013. Wily introscope leakhunter. http://www.adhoc-international.com/pages/en/structure/download/cawily_introscope2.pdf.
4. Practical memory leak detection using guarded value-flow analysis
5. Escape analysis for Java
Cited by
17 articles.
订阅此论文施引文献
订阅此论文施引文献,注册后可以免费订阅5篇论文的施引文献,订阅后可以查看论文全部施引文献
1. A Smart Status Based Monitoring Algorithm for the Dynamic Analysis of Memory Safety;ACM Transactions on Software Engineering and Methodology;2023-12-11
2. Mining Java Memory Errors using Subjective Interesting Subgroups with Hierarchical Targets;2023 IEEE International Conference on Data Mining Workshops (ICDMW);2023-12-04
3. Detection of Java Basic Thread Misuses Based on Static Event Analysis;2023 38th IEEE/ACM International Conference on Automated Software Engineering (ASE);2023-09-11
4. A Source-Level Instrumentation Framework for the Dynamic Analysis of Memory Safety;IEEE Transactions on Software Engineering;2023-04-01
5. Visualizing Memory Consumption with Vismep;2022 Working Conference on Software Visualization (VISSOFT);2022-10