partysip-dev
[Top][All Lists]
Advanced

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

Re: [Partysip-dev] where can I find memory leak check tool?


From: Aymeric Moizard
Subject: Re: [Partysip-dev] where can I find memory leak check tool?
Date: Wed, 19 Feb 2003 00:10:41 +0100 (CET)


On Tue, 18 Feb 2003, Roland Zheng wrote:

> Hi,

>  I am trying to find a memory leak checking tool which can point out
> the memory leaking problem. Anyone of you know any information ?

I'm using mpatrol on linux (also available on many OS).

Process:
Compile osip:
./configure --enable-mpatrol
make install

Compile partysip:
./configure --enable-mpatrol
make install

Run partysip this way:

mpatrol -C -S -L -j -d --list -p -t --use-debug partysip -d 6 -i

Note that the test will be a lot slower and this will affect
the behavior of applications if you initiate a huge number of
concurrent calls.

After your test, you should wait some time to let the
transactions and requests expires and be deleted trough
the ususal process. (At this step, you can attach to the
debugguer and verify that list of psp_req_t element in
uap and sfp module are empty.)

Then, it's time to quit: type "q" to quit partysip. This
way you will release all elements allocated at the very
begining of the application process. (config, socket...)

You should get the result in maptrol.$pid.log and you'll
find the memory leak table at the end. You will notice
a very few unfreed elements which are mostly internal
allocation from mpatrol and pthread library. (lauching
many elements does not increase this list of unallocated
elements... which is good enough)

Good luck.
Aymeric

> Thank you,
> Roland
>
>





reply via email to

[Prev in Thread] Current Thread [Next in Thread]