[OpenSIPS-Users] B2B memory use.
Bogdan-Andrei Iancu
bogdan at opensips.org
Tue Apr 9 19:35:26 CEST 2013
Hello Jorge,
My bad, I just noticed you query for free mem, not for used mem :). So
you say you are reporting a kind of leak ?
Have you looked into : http://www.opensips.org/Resources/DocsTsMem ?
Try to compile in the mem debugger and make a mem dump before and after
the call -> by diff'ing you will see if there is an actual leak or not.
Sometime, the free mem may decrease not because of leaks, but because of
memory fragmentation (more mem fragments are in memory, so more mem is
used for internal management).
I suggest to try to correlate with real_used_size (how much is actually
used, without overhead).
Regards,
Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
http://www.opensips-solutions.com
On 04/09/2013 04:25 PM, Jorge Henrique Pinho wrote:
>
> Hi Bogdan!
>
> My OpenSIPS is only using b2b modules with topology hiding. I only
> call 'b2b_init_request' function and nothing else.
>
> As for the time slots. The stop sample was retrieved after two minutes
> the call ended.
>
> Kind regards
>
> Jorge Pinho
>
> *From:*Bogdan-Andrei Iancu [mailto:bogdan at opensips.org]
> *Sent:* terça-feira, 9 de Abril de 2013 12:33
> *To:* OpenSIPS users mailling list
> *Cc:* Jorge Henrique Pinho; Nuno Ferreira
> *Subject:* Re: [OpenSIPS-Users] B2B memory use.
>
> Hello Jorge,
>
> Your testing is not really correct as it is not accurate - it is
> illogic for memory to drop after the call :).
>
> SHM mem is used by other components of OpenSIPS, like registration,
> dialogs, etc - so if you really want to test, you need to be sure your
> OpenSIPS is (1) actively doing only b2b and (2) the start/stop sample
> are before and long after the call ended (to ensure that all data
> expired).
>
> Best regards,
>
> Bogdan-Andrei Iancu
> OpenSIPS Founder and Developer
> http://www.opensips-solutions.com
>
>
> On 04/09/2013 12:50 PM, Jorge Henrique Pinho wrote:
>
> Hi all!
>
> I am using opensips 1.8 with b2b module.
>
> I am monitoring OpenSIPS memory consumption before and after a call is
> made, and I came across with interesting outcomes.
>
> The free memory before a call is made, is different from the free
> memory after the call is terminated.
>
> To monitor the memory I use this command "opensipsctl fifo
> get_statistics free_size".
>
> The reported results are these:
> Before the call : 2144637904
>
> After the call is terminated : 2144637328
>
> Is this normal behavior?
>
> Kind regards,
>
> Jorge Pinho
>
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org <mailto:Users at lists.opensips.org>
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
>
>
> _______________________________________________
> Users mailing list
> Users at lists.opensips.org
> http://lists.opensips.org/cgi-bin/mailman/listinfo/users
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.opensips.org/pipermail/users/attachments/20130409/f454b2a0/attachment.htm>
More information about the Users
mailing list