No subject


Wed Jun 27 05:48:46 CEST 2012


$ai in the accounting module. I'll try removing it from accounting
(log_extra) and see if it stops leaking.

-- 
Tais Plougmann Hansen

OSD Consulting ApS
osd.dk
Tel: +45 78101078
CVR: DK31332737

--089e013d08d40ee3a704da9004a8
Content-Type: text/html; charset=UTF-8
Content-Transfer-Encoding: quoted-printable

<div dir=3D"ltr">Hi,<div><br></div><div>I&#39;m seeing a possible leak in p=
arsing the P-Asserted-Identity, and possibly P-Preferred-Identity headers i=
n 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 res=
tart 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]: INF=
O: qm_status: heap size=3D 8388608</div><div>Apr 16 16:38:58 gws1 /usr/sbin=
/kamailio[9398]: INFO: qm_status: used=3D 5369240, used+overhead=3D6417216,=
 free=3D1971392</div>


</div><div>[...]</div><div><div>Apr 16 16:39:03 gws1 /usr/sbin/kamailio[939=
8]: INFO: qm_sums: =C2=A0count=3D =C2=A06198 size=3D =C2=A0 4721776 bytes f=
rom &lt;core&gt;: parse_pai.c: parse_pai_header(58)</div></div><div><br></d=
iv><div>I am currently using the header through $ai for xlog statements, th=
e accounting module and a validity check (if (!($(ai{uri.user}) =3D~ &quot;=
^\+[1-9]+&quot;)) {...}).</div>


<div><br></div><div>From digging through the logs it could seem like this h=
appens when using $ai in the accounting module. I&#39;ll try removing it fr=
om accounting (log_extra) and see if it stops leaking.</div><div><br></div>

<div>-- <br><font color=3D"#666666"><font face=3D"arial, helvetica, sans-se=
rif">Tais Plougmann Hansen</font><font face=3D"arial, helvetica, sans-serif=
"><br>

</font></font><div><font face=3D"arial, helvetica, sans-serif" color=3D"#66=
6666"><br></font></div><div><table><tbody><tr><td><font face=3D"arial, helv=
etica, sans-serif" color=3D"#666666"><img src=3D"http://osd.dk/img/osd-sign=
ature.png"></font></td>



<td><font face=3D"arial, helvetica, sans-serif" color=3D"#666666">OSD Consu=
lting ApS<br><a href=3D"http://osd.dk/" target=3D"_blank">osd.dk</a><br>Tel=
: <a href=3D"tel:%2B45%2078101078" value=3D"+4578101078" target=3D"_blank">=
+45 78101078</a><br>


CVR: DK31332737<br></font></td></tr></tbody></table></div>
</div></div>

--089e013d08d40ee3a704da9004a8--



More information about the sr-users mailing list