a virtual machine-based detection method for dynamic memory leak

Abstract

内存泄露是一种常见的系统安全问题。虚拟技术是云计算的关键技术,虚拟机环境下的内存泄露不容忽视。而基于虚拟机的内存泄露检测技术尚未成熟。分析虚拟机Xen内核源码中与内存分配有关的代码,提出一种动态检测虚拟机中内存泄露的方法。该方法记录应用程序对资源的申请、释放以及使用情况,插入监测代码,最终检测出内存泄露的代码。实验结果表明,该方法能够有效地检测Xen虚拟机中的内存泄露。国家自然科学基金项目(90818012)|“核高基”国家科技重大专项(2010ZX01036-001-002)|中国科学院知识创新工程重要方向项目(KGCX2-YW-125)Memory leak is a common problem of system security.Virtualisation is a key technology for the cloud computing in which the memory leak detection cant be ignored.However the virtual machine-based memory leak detection technique has not been mature yet.In this paper we analyse the codes pertinent to memory allocation in source code of Xen Virtual Machines kernel,and present a method to dynamically detect the memory leak problem in virtual machine.The method records the resources application,release and use of the application programs.By injecting monitoring code,we succeed in detecting the code of memory leak eventually.Experimental results show that,the method in this paper can effectively detect the memory leak problem of Xen Virtual Machine

    Similar works