<div dir="ltr">Hi Daniel.<div>Thank you for your suggestion and feedback on this.<br><div>I've tried that already and here's what I've found after 15h on a running kamailio:</div></div><div><br></div><div>All records in pua and presentity DB tables are gone by the end of the day, so the expire time seems to be working.</div><div>I still see system memory growing and not being released again.</div><div>You can find attached (tar.gz) various dumps of pkgstats and shmem usage. The number after the 'underscore' in file names corresponds to system memory allocation in kamailio at the various timestamps. The earlier timestamp corresponds to minute 1.</div><div>So I started with 638632kb system mem allocation and I'm now with 1086548kb being used after 15 hours.</div><div><br></div><div>I'll continue to investigate the issue but if you have any other suggestions on how to tackle this, I'm of course available to test those.</div><div>Looking forward to hear from you.</div><div><br></div><div>Best Regards,</div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature"><p><font color="#1f497d" face="'Trebuchet MS', sans-serif">--</font></p><p><b><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#1f497d">Nuno Miguel Reis</span></b><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#133770"> | <b>Unified Communication</b></span><b><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#1f497d"> Systems</span></b><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#133770"><br>
M. <a value="+351918919465">+351 913907481</a> | <a href="mailto:nreis@wavecom.pt" target="_blank"><span style="color:blue">nreis@wavecom.pt</span></a></span><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif""></span><span style="font-size:10.0pt;font-family:"Trebuchet MS","sans-serif";color:#1f497d"></span><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#133770"><br></span></p><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#133770">WAVECOM-Soluções Rádio, S.A.</span><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#133770"><br>
Cacia Park | Rua do Progresso, Lote 15</span><span style="font-size:8.0pt;font-family:"Trebuchet MS","sans-serif";color:#133770"><br>3800-639 AVEIRO | Portugal</span><span style="font-size:8pt;font-family:"Trebuchet MS","sans-serif";color:rgb(19,55,112)"><br>
T. <a value="+351234919190">+351 309 700 225</a> | F. <a value="+351234919191">+351 234 919 191</a></span><span style="font-size:8pt;font-family:"Trebuchet MS","sans-serif";color:rgb(19,55,112)"><br></span><b><span style="font-size:9.0pt;font-family:"Trebuchet MS","sans-serif";color:#1f497d"><a href="http://maps.google.com/maps/ms?msa=0&msid=202333747613191340808.0004b4b227a6144f0df88" target="_blank"><span style="color:#1f497d">GPS</span></a> | <a href="http://www.wavecom.pt/" target="_blank"><span style="color:#1f497d">www.wavecom.pt</span></a></span></b><b><a href="http://www.wavecom.pt/" target="_blank"><span style="color:#1f497d"></span></a></b><p><span style="border-collapse:collapse"></span></p><p><a href="http://www.wavecom.pt/pt/wavecom/premios.php" style="color:rgb(17,85,204)" target="_blank"><span style="text-decoration:none"><img src="cid:image001.png@01CD4A22.D45EAB90" alt="Description: Description: WavecomSignature" border="0" height="100" width="400"></span></a><span style="color:rgb(31,73,125)"></span></p>
<p><a href="http://www.wavecom.pt/pt/mail_eventos.php" style="color:rgb(17,85,204);font-size:medium;font-family:'Times New Roman'" target="_blank"><img alt="Publicity" src="http://www.wavecom.pt/email_signature/pub.png" border="0" height="71" width="389"></a>
</p><p></p><p><span><br></span></p></div></div>
<br><div class="gmail_quote">On Mon, Feb 9, 2015 at 5:05 PM, Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div bgcolor="#FFFFFF" text="#000000">
Hello,<br>
<br>
can you check the expires column in presentity table. The issue
might be accumulation of too many dialog-info documents, due to
large expires interval, taken from the default lifetime of the
dialog. You can change that with:<br>
<br>
-
<a href="http://kamailio.org/docs/modules/4.2.x/modules/pua_dialoginfo.html#idp2576952" target="_blank">http://kamailio.org/docs/modules/4.2.x/modules/pua_dialoginfo.html#idp2576952</a><br>
<br>
Cheers,<br>
Daniel<div><div class="h5"><br>
<br>
<div>On 30/01/15 16:43, Nuno Reis wrote:<br>
</div>
<blockquote type="cite">
<div dir="ltr">Hi Daniel.
<div><br>
</div>
<div>Thanks for answering me back. I'll follow the exact
procedures from here: <a href="http://www.kamailio.org/wiki/tutorials/troubleshooting/memory" target="_blank">http://www.kamailio.org/wiki/tutorials/troubleshooting/memory</a>
and will let you know about my exact finding soon.</div>
<div><br>
</div>
<div>Cheers,</div>
</div>
<div class="gmail_extra"><br clear="all">
<div>
<div>
<p><font color="#1f497d" face="'Trebuchet MS', sans-serif">--</font></p>
<p><b><span>Nuno
Miguel Reis</span></b><span> | <b>Unified
Communication</b></span><b><span>
Systems</span></b><span><br>
M. <a value="+351918919465">+351
913907481</a> | <a href="mailto:nreis@wavecom.pt" target="_blank"><span style="color:blue">nreis@wavecom.pt</span></a></span><span></span><span></span><span><br>
</span></p>
<span>WAVECOM-Soluções
Rádio, S.A.</span><span><br>
Cacia Park | Rua do Progresso, Lote 15</span><span><br>
3800-639 AVEIRO | Portugal</span><span><br>
T. <a value="+351234919190">+351
309 700 225</a> | F. <a value="+351234919191">+351 234 919 191</a></span><span><br>
</span><b><span><a href="http://maps.google.com/maps/ms?msa=0&msid=202333747613191340808.0004b4b227a6144f0df88" target="_blank"><span style="color:#1f497d">GPS</span></a>
| <a href="http://www.wavecom.pt/" target="_blank"><span style="color:#1f497d">www.wavecom.pt</span></a></span></b><b><a href="http://www.wavecom.pt/" target="_blank"><span style="color:#1f497d"></span></a></b>
<p><span style="border-collapse:collapse"></span></p>
<p><a href="http://www.wavecom.pt/pt/wavecom/premios.php" style="color:rgb(17,85,204)" target="_blank"><span style="text-decoration:none"><img src="cid:part9.08070704.06070106@gmail.com" alt="Description: Description: WavecomSignature" border="0" height="100" width="400"></span></a><span style="color:rgb(31,73,125)"></span></p>
<p><a href="http://www.wavecom.pt/pt/mail_eventos.php" target="_blank"><img alt="Publicity" src="http://www.wavecom.pt/email_signature/pub.png" border="0" height="71" width="389"></a>
</p>
<p><span><br>
</span></p>
</div>
</div>
<br>
<div class="gmail_quote">On Fri, Jan 30, 2015 at 5:23 AM,
Daniel-Constantin Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hello,
<div><br>
</div>
<div>which memory is increasing? shared or private memory?
or is system memory?</div>
<div><br>
</div>
<div>Cheers,</div>
<div>Daniel</div>
</div>
<div class="gmail_extra">
<div>
<div><br>
<div class="gmail_quote">On Fri, Jan 30, 2015 at 4:24
AM, Nuno Reis <span dir="ltr"><<a href="mailto:nreis@wavecom.pt" target="_blank">nreis@wavecom.pt</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div dir="ltr">Hi Juha and all.
<div><br>
</div>
<div>I understand that and that is what the RFC
says. It seems pua module does that right.
Although something is clearly not right in my
production environment because kamailio memory
consumption still grows pretty fast. Kamailio
memory usage starts in ~500MB and after ~24H
kamailio is using ~3GB. If I disable kamailio
from listening on the localhost(127.0.0.1)
where pua is generating the SIP Publishes
kamailio just keeps around the ~500MB all the
time.</div>
<div>This is a small production environment with
70 extensions with Yealink phones.</div>
<div>Any ideas on how to chase down this memory
leak? Should I open a git issue for this one?</div>
<div><br>
</div>
<div><br>
</div>
</div>
<div class="gmail_extra"><span><br clear="all">
<div>
<div>
<p><font color="#1f497d" face="'Trebuchet
MS', sans-serif">--</font></p>
<p><b><span>Nuno Miguel Reis</span></b><span> | <b>Unified
Communication</b></span><b><span> Systems</span></b><span><br>
M. <a value="+351918919465">+351 913907481</a>
| <a href="mailto:nreis@wavecom.pt" target="_blank"><span style="color:blue">nreis@wavecom.pt</span></a></span><span></span><span></span><span><br>
</span></p>
<span>WAVECOM-Soluções Rádio,
S.A.</span><span><br>
Cacia Park | Rua do Progresso, Lote 15</span><span><br>
3800-639 AVEIRO | Portugal</span><span><br>
T. <a value="+351234919190">+351 309 700 225</a>
| F. <a value="+351234919191">+351 234 919 191</a></span><span><br>
</span><b><span><a href="http://maps.google.com/maps/ms?msa=0&msid=202333747613191340808.0004b4b227a6144f0df88" target="_blank"><span style="color:#1f497d">GPS</span></a>
| <a href="http://www.wavecom.pt/" target="_blank"><span style="color:#1f497d">www.wavecom.pt</span></a></span></b><b><a href="http://www.wavecom.pt/" target="_blank"><span style="color:#1f497d"></span></a></b>
<p><span style="border-collapse:collapse"></span></p>
<p><a href="http://www.wavecom.pt/pt/wavecom/premios.php" style="color:rgb(17,85,204)" target="_blank"><span style="text-decoration:none"><img src="cid:part9.08070704.06070106@gmail.com" alt="Description: Description:
WavecomSignature" border="0" height="100" width="400"></span></a><span style="color:rgb(31,73,125)"></span></p>
<p><a href="http://www.wavecom.pt/pt/mail_eventos.php" target="_blank"><img alt="Publicity" src="http://www.wavecom.pt/email_signature/pub.png" border="0" height="71" width="389"></a>
</p>
<p><span><br>
</span></p>
</div>
</div>
<br>
</span>
<div>
<div>
<div class="gmail_quote">On Wed, Jan 21,
2015 at 8:45 PM, Juha Heinanen <span dir="ltr"><<a href="mailto:jh@tutpro.com" target="_blank">jh@tutpro.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span>Nuno
Reis writes:<br>
<br>
> Here my publisher is Kamailio
itself. Can someone elaborate a bit
more on<br>
> this issue and maybe we can get
to bottom of it?<br>
<br>
</span>when your application issues
initial publish request, it does so
without<br>
SIP-If-Match header. 200 ok from
presence server then contains an etag<br>
in SIP-ETag header. when your
application refreshes the publish, it
must<br>
place this etag in SIP-If-Match header
to prevent presence server from<br>
creating a new publication.<br>
<br>
for subscribes, your application must
place in re-subscribe the<br>
same event header id param as the
previous one had in order for the<br>
presence server to know that subscribe
was not a new subscription.<br>
<span><font color="#888888"><br>
-- juha<br>
</font></span></blockquote>
</div>
<br>
</div>
</div>
</div>
</blockquote>
</div>
<br>
<br clear="all">
<div><br>
</div>
</div>
</div>
<span><font color="#888888">-- <br>
<div>
<div dir="ltr">
<div>Daniel-Constantin Mierla - <a href="http://www.asipto.com" target="_blank">http://www.asipto.com</a></div>
<div><a href="http://twitter.com/#%21/miconda" target="_blank">http://twitter.com/#!/miconda</a>
- <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/micond</a></div>
</div>
</div>
</font></span></div>
</blockquote>
</div>
<br>
</div>
</blockquote>
<br>
</div></div><pre cols="72"><span class="">--
Daniel-Constantin Mierla
<a href="http://twitter.com/#!/miconda" target="_blank">http://twitter.com/#!/miconda</a> - <a href="http://www.linkedin.com/in/miconda" target="_blank">http://www.linkedin.com/in/miconda</a></span>
Kamailio World Conference, May 27-29, 2015
Berlin, Germany - <a href="http://www.kamailioworld.com" target="_blank">http://www.kamailioworld.com</a></pre>
</div>
</blockquote></div><br></div>