Re: [Tracker] Memory leak in tracker-indexer



Jimmy Huang wrote:
On Wed, 2008-09-17 at 00:21 +0200, Laurent Aguerreche wrote:
Hello,

there is a big memory leak with tracker-indexer. The processus uses more
and more memory but free almost all memory when it exists so I assume
that a list of extracted info is not freed while tracker-indexer is
running.


What's the best way to track memory leaks when running the tracker
daemon?  I also found that there's some huge memory leaks when using the
tracker-tag cmd line tool.  I have a script that adds some random
keywords to 10 thousand indexed files using the "tracker-tag -a"
command, after executing the script, the trackerd process is consuming
some 400MB of memory, and I have to kill it.

Any recommendation on how to track down the leak?

Using Valgrind. Something like:

G_SLICE=always-malloc valgrind --leak-check=full --show-reachable=yes
--leak-resolution=high <my binary>

-- 
Regards,
Martyn



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]