Precise memory leak detection for java software using container profiling

Author:

Xu Guoqing1,Rountev Atanas2

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)

Subject

Software

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

同舟云学术

1.学者识别学者识别

2.学术分析学术分析

3.人才评估人才评估

"同舟云学术"是以全球学者为主线,采集、加工和组织学术论文而形成的新型学术文献查询和分析系统,可以对全球学者进行文献检索和人才价值评估。用户可以通过关注某些学科领域的顶尖人物而持续追踪该领域的学科进展和研究前沿。经过近期的数据扩容,当前同舟云学术共收录了国内外主流学术期刊6万余种,收集的期刊论文及会议论文总量共计约1.5亿篇,并以每天添加12000余篇中外论文的速度递增。我们也可以为用户提供个性化、定制化的学者数据。欢迎来电咨询!咨询电话:010-8811{复制后删除}0370

www.globalauthorid.com

TOP

Copyright © 2019-2024 北京同舟云网络信息技术有限公司
京公网安备11010802033243号  京ICP备18003416号-3