Find the answer to your Linux question:
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 ...
  1. #1
    Just 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.

  2. #2
    Just 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.

  3. #3
    Just Joined!
    Join Date
    Jul 2010
    Posts
    4
    Rational purify is available for linux.

  4. #4
    Just Joined!
    Join Date
    Nov 2004
    Posts
    8
    valgrind is perfect for memory leaks too!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...