Results 1 to 4 of 4
Hi all,
Are there any tools to detect memory leaks of running programs in Linux? I know of Valgrind, but it's mostly used to debug for memory leaks and not ...
- 08-16-2011 #1Just Joined!
- Join Date
- Sep 2008
- Posts
- 20
Linux tool to detect memory leak
Hi all,
Are there any tools to detect memory leaks of running programs in Linux? I know of Valgrind, but it's mostly used to debug for memory leaks and not simply to detect memory leaks.
Thank you.
- 08-17-2011 #2Just Joined!
- Join Date
- Jan 2011
- Location
- Fairfax, Virginia, USA
- Posts
- 94
What makes Valgrind great is that it just works without recompiling. Before Valgrind, you had to link some odd libraries with your code. I couldn't imagine using anything other than Valgrind so I'm interested in watching your thread.
To get an idea were memory leaks are with Valgrind, try
--leak-check=full
as indicated in the bottom of its output. Its always been great for me. Also compile your code with at least -g and don't strip it so you can get a good idea what its talking about.
- 08-17-2011 #3Just Joined!
- Join Date
- Jul 2010
- Posts
- 4
Rational purify is available for linux.
- 08-17-2011 #4Just Joined!
- Join Date
- Nov 2004
- Posts
- 8
valgrind is perfect for memory leaks too!


Reply With Quote