Re: How to find memory leaks from an running application

David Faure <[email protected]>
Newsgroups gmane.comp.debugging.valgrind
Organization KDE
Message-ID <15469124.Ash8RoxBsO@asterixp50>
On jeudi 20 juin 2019 12:07:19 CEST Howard Chu wrote:
> David Chapman wrote:
> > On 6/19/2019 10:34 PM, subhasish Karmakar wrote:
> >> Hi,
> >> 
> >> I have an application running on embedded linux.
> >> After running for hours my application causes out of memory issue.
> >> How can I get memory leak report periodically when the application is
> >> running? It's a process with "while(1)" loop.
> 
> If your only problem is memory leaks and no other concerns (such as out of
> bounds accesses, corruptions, etc.) then you should give
> https://github.com/hyc/mleak/ a try. It is faster than all other memory
> leak detectors out there, fast enough to run in production. And you can
> send it a periodic signal to get a snapshot of currently allocated memory.

Or, for another LD_PRELOAD-based tool with a really nice user interface on 
top, https://github.com/KDAB/heaptrack

-- 
David Faure, [email protected], http://www.davidfaure.fr
Working on KDE Frameworks 5
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.