内存泄漏对象检测与度量方法  

Detection and Measurement Method of Memory Leaking Object

在线阅读下载全文

作  者:于巧[1] 姜淑娟[1] 王兴亚[1] 鞠小林[1,2] 董庆杰 

机构地区:[1]中国矿业大学计算机科学与技术学院,江苏徐州221116 [2]南通大学计算机科学与技术学院,江苏南通226019 [3]南水北调东线山东干线有限责任公司,济南250013

出  处:《计算机科学与探索》2014年第8期978-988,共11页Journal of Frontiers of Computer Science and Technology

基  金:国家自然科学基金No.60970032;江苏省333工程;江苏省青蓝工程~~

摘  要:程序运行过程中一些不再被使用的对象未及时释放会引发内存泄漏问题,泄漏对象经过长期累积会降低系统性能,甚至导致系统崩溃。针对Java程序中的内存泄漏问题,提出了一种内存泄漏对象检测与度量方法。通过动态跟踪源程序的执行过程,周期性记录堆栈信息,并分析堆中可疑的泄漏对象。定义内存泄漏度计算方法,度量不同对象对程序泄漏的影响程度,从而确定产生泄漏的对象。最后选取两个开源程序进行验证,并与两种现有方法进行对比,结果表明该方法的泄漏检测率较高。Memory leaks occur when objects that are no longer used cannot be released promptly during the execution of programs. After long-term accumulation, leaking objects will reduce system performance and cause the system to crash when they become serious. To solve memory leaks in Java programs, this paper proposes a detection and measurement method of memory leaking objects. Firstly, through tracing the execution of source programs dynamically, this method records stack information periodically and analyzes the suspicious leaking objects in heap. Then it defines a formula for calculating memory leaking confidence, which can measure the influence of different objects on program leaks, thereby confirming the leaked objects. Finally, this paper chooses two open-source programs for verification, and compared with two existing methods, the results show that the proposed method gets higher leak detection rate.

关 键 词:泄漏对象 动态检测 堆栈信息 内存泄漏度 

分 类 号:TP311[自动化与计算机技术—计算机软件与理论]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象