首页> 外文会议>International Conference on Software Engineering >Precise Memory Leak Detection for Java Software Using Container Profiling
【24h】

Precise Memory Leak Detection for Java Software Using Container Profiling

机译:使用容器分析的Java软件的精确内存泄漏检测

获取原文

摘要

A memory leak in a Java program occurs when object references that are no longer needed are unnecessarily maintained. Such leaks are difficult to understand because static analyses typically cannot precisely identify these redundant references, and existing dynamic analyses for leak detection track and report fine-grained information about individual objects, producing results that are usually hard to interpret and lack precision. We introduce a novel container-based heap-tracking technique, based on the observation that many memory leaks in Java programs occur due to containers that keep references to unused data entries. The novelty of the described work is two-fold: (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 approach 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 and for a known bug in SPECjbb, the top containers in the reports include the containers that leak memory.
机译:在不必要的对象引用不需要不必要地维护时,将发生Java程序中的内存泄漏。这种泄漏难以理解,因为静态分析通常不能精确地识别这些冗余参考,以及用于泄漏检测轨道的现有动态分析,并报告有关各个物体的细粒度信息,产生通常难以解释和缺乏精度的结果。我们介绍了一种基于新的集装箱堆跟踪技术,基于观察结果,即Java程序中的许多内存泄漏由于包含对未使用的数据条目的引用而发生的许多内存泄漏。所描述的工作的新颖性是两倍:(1),而不是跟踪任意对象并通过分析对未使用对象的引用来查找泄漏,而是该技术仅追踪容器,直接识别泄漏的源,并直接识别(2)方法计算基于其存储器消耗的组合及其元素的陈旧(自上次检索以来的时间)的组合,虽然先前的方法不考虑这种组合度量。我们的实验结果表明,所提出的技术产生的报告可以非常精确:对于Sun报告的两个错误,对于SpecJBB中的已知错误,报告中的顶级容器包括泄漏内存的容器。

著录项

相似文献

  • 外文文献
  • 中文文献
  • 专利
获取原文

客服邮箱:kefu@zhangqiaokeyan.com

京公网安备:11010802029741号 ICP备案号:京ICP备15016152号-6 六维联合信息科技 (北京) 有限公司©版权所有
  • 客服微信

  • 服务号