摘要
针对Java程序中的内存泄漏问题进行研究,从虚拟机角度对该问题进行了建模,并对模型进行了可诊断性分析。在此基础上,提出一种从应用级角度解决内存泄漏问题的自愈机制,给出自愈机制的体系结构和一种自愈策略,并进行了实现。实验结果表明,所提出的自愈机制针对Java程序中不同的内存泄漏问题有效可行,该机制的最大优点在于不需要修改程序源代码,且不影响程序功能的正常运行,这对于解决复杂系统集成以及采用第三方软件等情况下的内存泄漏问题具有实用意义,同时,该自愈机制对当前Java垃圾收集器也具有一定借鉴作用。
The introduction of the full paper discusses relevant problems and then proposes the in the title. Sections 1 through 4 explain our self-healing mechanism. Their core consists of: ( 1 research mentioned ) garbage collectors automatically free memory previously allocated by applications; generally, they discard unreachable objects from reloading them if they are required; (4) the objects which are true loitering objects will never be reloaded to memocode of the programs which may bring loitering objects because of defects and it does not interfere with the running of the programs. Our self-healing mechanism, we believe, is very useful for complex software or third-party software integration where loitering objects and other memory leaks are likely here to stay.
出处
《西北工业大学学报》
EI
CAS
CSCD
北大核心
2011年第4期646-651,共6页
Journal of Northwestern Polytechnical University
基金
航空科学基金(2010ZD53047)资助
关键词
内存泄漏
有限状态自动机
垃圾收集
自愈
策略
software engineering, mechanisms, models, experiments, memory leak, finite state machine, garbage collection, self-healing