Valgrind使用
上一篇讲的是google-perftools,这次讲下Valgrind
官网:
http://valgrind.org/
?
源码下载页
?
http://valgrind.org/downloads/current.html
?
编译后的valgrind 位于
?
valgrind-3.6.1/coregrind目录中
?
?
Massif Visualizer(用于查看massif 输出)
http://gitorious.org/massif-visualizer
https://projects.kde.org/projects/extragear/sdk/massif-visualizer
?
参考文章如下:
?
应用 Valgrind 发现 Linux 程序的内存问题
http://www.ibm.com/developerworks/cn/linux/l-cn-valgrind/
?
?
内存详解
http://www.ibm.com/developerworks/cn/java/j-nativememory-linux/?S_TACT=105AGX52&S_CMP=tec-csdn
?
在 Linux 平台中调试 C/C++ 内存泄漏方法
http://www.ibm.com/developerworks/cn/linux/l-cn-memleak/index.html
?
?
内存调试技巧
http://www.ibm.com/developerworks/cn/aix/library/au-memorytechniques.html
?
?
在Linux下使用用Valgrind查找内存泄漏和无效内存访问
http://www.linuxidc.com/Linux/2009-02/18646.htm
?
?
?
同时推荐下使用 Rational Purify
Rational Purify 使用及分析实例
http://www.ibm.com/developerworks/cn/rational/r-cail/
?
?
http://blog.csdn.net/haoel/article/details/2900
nohup /home/dikar/google-perf/valgrind-3.6.1/coregrind/valgrind --trace-children=yes --leak-check=full --log-file=leak.log java TestLeak >/home/dikar/var.log 2>&1 &?
?