How I can detect memory leaks of C++ application in Linux (Ubuntu OS)?

39,204

Solution 1

Check out Valgrind, it should be in the Ubuntu repository. it can give you detailed information about memory usage in C++ programs. Kind of like a debugger for memory usage.

valgrind --tool=memcheck <your_app> <your_apps_params>

Solution 2

Use Valgrind for that purpose.

Solution 3

also may look ccmalloc, NJAMD, mpatrol, YAMD, LeakTracer

Solution 4

If open source software isn't mandatory you could also check out Purify

Share:
39,204
G-71
Author by

G-71

Junior software developer (С++, Python)

Updated on March 31, 2020

Comments

  • G-71
    G-71 about 4 years

    How I can detect memory leaks of C++ application in Linux (Ubuntu OS) ? What is the program you can advise me for this goal ?