<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
I looked quickly to the core and seems ok, I will check the
accounting later.<br>
<br>
Do you simply account $ai or is any other attribute related to it?<br>
<br>
If you have time to test, can you put the $ai in an avp during the
request processing and account that avp? If the leak is not shown
anymore in that case, it narrows down a lot where to look at.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 4/17/13 5:19 PM, Tais Plougmann
Hansen wrote:<br>
</div>
<blockquote
cite="mid:CALant3B93r3eSm6xne0xgxBEUwRHyQMLU88yXoi7x5Zogc1DuQ@mail.gmail.com"
type="cite">
<div dir="ltr">Hi,
<div><br>
</div>
<div>I'm seeing a possible leak in parsing the
P-Asserted-Identity, and possibly P-Preferred-Identity headers
in kamailio-3.3.4.</div>
<div><br>
</div>
<div>I have a server running in which one thread has currently
most of the 8 MB private memory allocated. At restart qm_sums
reports parse_pai.c as sitting on most of the memory:</div>
<div><br>
</div>
<div>
<div>Apr 16 16:38:58 gws1 /usr/sbin/kamailio[9398]: INFO:
qm_status: heap size= 8388608</div>
<div>Apr 16 16:38:58 gws1 /usr/sbin/kamailio[9398]: INFO:
qm_status: used= 5369240, used+overhead=6417216,
free=1971392</div>
</div>
<div>[...]</div>
<div>
<div>Apr 16 16:39:03 gws1 /usr/sbin/kamailio[9398]: INFO:
qm_sums: count= 6198 size= 4721776 bytes from
<core>: parse_pai.c: parse_pai_header(58)</div>
</div>
<div><br>
</div>
<div>I am currently using the header through $ai for xlog
statements, the accounting module and a validity check (if
(!($(ai{uri.user}) =~ "^\+[1-9]+")) {...}).</div>
<div><br>
</div>
<div>From digging through the logs it could seem like this
happens when using $ai in the accounting module. I'll try
removing it from accounting (log_extra) and see if it stops
leaking.</div>
<div><br>
</div>
<div>-- <br>
<font color="#666666"><font face="arial, helvetica,
sans-serif">Tais Plougmann Hansen</font><font face="arial,
helvetica, sans-serif"><br>
</font></font>
<div><font face="arial, helvetica, sans-serif" color="#666666"><br>
</font></div>
<div>
<table>
<tbody>
<tr>
<td><font face="arial, helvetica, sans-serif"
color="#666666"><img moz-do-not-send="true"
src="http://osd.dk/img/osd-signature.png"></font></td>
<td><font face="arial, helvetica, sans-serif"
color="#666666">OSD Consulting ApS<br>
<a moz-do-not-send="true" href="http://osd.dk/"
target="_blank">osd.dk</a><br>
Tel: <a moz-do-not-send="true"
href="tel:%2B45%2078101078" value="+4578101078"
target="_blank">+45 78101078</a><br>
CVR: DK31332737<br>
</font></td>
</tr>
</tbody>
</table>
</div>
</div>
</div>
<br>
<fieldset class="mimeAttachmentHeader"></fieldset>
<br>
<pre wrap="">_______________________________________________
SIP Express Router (SER) and Kamailio (OpenSER) - sr-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:sr-users@lists.sip-router.org">sr-users@lists.sip-router.org</a>
<a class="moz-txt-link-freetext" href="http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users">http://lists.sip-router.org/cgi-bin/mailman/listinfo/sr-users</a>
</pre>
</blockquote>
<br>
<pre class="moz-signature" cols="72">--
Daniel-Constantin Mierla - <a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a>
Kamailio World Conference, April 16-17, 2013, Berlin
- <a class="moz-txt-link-freetext" href="http://conference.kamailio.com">http://conference.kamailio.com</a> -</pre>
</body>
</html>