摘要: 现有主流轻量级内存泄露检测工具,如MemWatch和MemLeak等在高频内存分配下存在效率较低等性能缺陷。为此,提出一种提升内存泄露检测工具性能的方法。运用该方法对开源工具MemLeak进行修改,将修改后的工具用于大数据存储系统Redis的内存泄漏检测。基于开源软件Redis的实用性测试结果表明,该方法具有较好的可用性与实用性。
关键词:
内存泄露,
高频,
内存分配,
哈希表,
红黑树
Abstract: The memory detection tools such as MemLeak and MemWatch are not very efficient when there the operation of malloc/free is high frequently called. This paper presents a new technique to salve this problem. It uses the new technique to improve the tool MemLeak, and improved tool is applied to memory leak detection of big data memory system Redis. Practicability test based on open software Redis shows that the technique has better actual value.
Key words:
memmory leak,
high frequency,
memory allocation,
Hash table,
Red and Black(RB) tree
中图分类号: