<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#FFFFFF">
Hello,<br>
<br>
if you do:<br>
<br>
kamctl mi get_statistics all<br>
<br>
do you see an increase of active transactions counter?<br>
<br>
Would be possible for you to compile with MEMDBG=1 and then get the
memory logs?<br>
<br>
make MEMDBG=1 cfg<br>
<br>
Then add your extra modules in include_modules variable inside
modules.lst<br>
<br>
Afterwards:<br>
<br>
make install<br>
<br>
Edit kamailio.cfg and set memlog global parameter to a lower value
than debug global parameter.<br>
<br>
Run kamailio for a while with the new config, when you see the
shared memory keeps increasing, stop kamailio. Send the log messages
from syslog to mailing list or made them available for download
somewhere.<br>
<br>
Cheers,<br>
Daniel<br>
<br>
<div class="moz-cite-prefix">On 21/01/14 09:54, Shankar wrote:<br>
</div>
<blockquote
cite="mid:52de36e0.6251b40a.70cd.ffffa8e0SMTPIN_ADDED_BROKEN@mx.google.com"
type="cite">
<meta http-equiv="Content-Type" content="text/html;
charset=ISO-8859-1">
<meta name="Generator" content="Microsoft Word 12 (filtered
medium)">
<!--[if !mso]><style>v\:* {behavior:url(#default#VML);}
o\:* {behavior:url(#default#VML);}
w\:* {behavior:url(#default#VML);}
.shape {behavior:url(#default#VML);}
</style><![endif]-->
<style><!--
/* Font Definitions */
@font-face
{font-family:Calibri;
panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
{font-family:Tahoma;
panose-1:2 11 6 4 3 5 4 4 2 4;}
@font-face
{font-family:Consolas;
panose-1:2 11 6 9 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
{margin:0in;
margin-bottom:.0001pt;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
a:link, span.MsoHyperlink
{mso-style-priority:99;
color:blue;
text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
{mso-style-priority:99;
color:purple;
text-decoration:underline;}
p
{mso-style-priority:99;
mso-margin-top-alt:auto;
margin-right:0in;
mso-margin-bottom-alt:auto;
margin-left:0in;
font-size:12.0pt;
font-family:"Times New Roman","serif";}
pre
{mso-style-priority:99;
mso-style-link:"HTML Preformatted Char";
margin:0in;
margin-bottom:.0001pt;
font-size:10.0pt;
font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
{mso-style-priority:99;
mso-style-link:"Balloon Text Char";
margin:0in;
margin-bottom:.0001pt;
font-size:8.0pt;
font-family:"Tahoma","sans-serif";}
span.HTMLPreformattedChar
{mso-style-name:"HTML Preformatted Char";
mso-style-priority:99;
mso-style-link:"HTML Preformatted";
font-family:Consolas;}
span.EmailStyle20
{mso-style-type:personal;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.EmailStyle22
{mso-style-type:personal-reply;
font-family:"Calibri","sans-serif";
color:#1F497D;}
span.BalloonTextChar
{mso-style-name:"Balloon Text Char";
mso-style-priority:99;
mso-style-link:"Balloon Text";
font-family:"Tahoma","sans-serif";}
.MsoChpDefault
{mso-style-type:export-only;
font-size:10.0pt;}
@page WordSection1
{size:8.5in 11.0in;
margin:1.0in 1.0in 1.0in 1.0in;}
div.WordSection1
{page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]-->
<div class="WordSection1">
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Anyone
who had used t_suspend() and t_continue() can share the
performance details?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I
tried async module with one sec sleep time. I tried only 5
calls per second but still it was not successful. After
sometime I see below logs,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:yellow;mso-highlight:yellow">Jan
21 13:51:55 PLT-RA-RD-W167A PCscf[16520]: ERROR: tm
[t_suspend.c:128]: t_continue(): ERROR: t_continue:
transaction not found<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:yellow;mso-highlight:yellow">Jan
21 13:52:49 PLT-RA-RD-W167A last message repeated 15 times<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:yellow;mso-highlight:yellow">Jan
21 13:59:38 PLT-RA-RD-W167A last message repeated 12 times<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D;background:yellow;mso-highlight:yellow">Jan
21 14:13:03 PLT-RA-RD-W167A last message repeated 5 times</span><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Any
configuration changes can help here?<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Shankar<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
Shankar [<a class="moz-txt-link-freetext" href="mailto:shankar.rk@plintron.com">mailto:shankar.rk@plintron.com</a>] <br>
<b>Sent:</b> Wednesday, January 15, 2014 1:26 PM<br>
<b>To:</b> 'Jason Penton'<br>
<b>Cc:</b> 'SIP Router - Kamailio (OpenSER) and SIP
Express Router (SER) - Users Mailing List'<br>
<b>Subject:</b> RE: [SR-Users] FW: Regd. t_suspend() and
t_continue()<o:p></o:p></span></p>
</div>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Hi
Jason,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">I
am using 4.0.2 <o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Regards,<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D">Shankar<o:p></o:p></span></p>
<p class="MsoNormal"><span
style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1F497D"><o:p> </o:p></span></p>
<div style="border:none;border-top:solid #B5C4DF
1.0pt;padding:3.0pt 0in 0in 0in">
<p class="MsoNormal"><b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">From:</span></b><span
style="font-size:10.0pt;font-family:"Tahoma","sans-serif"">
Jason Penton [<a moz-do-not-send="true"
href="mailto:jason.penton@smilecoms.com">mailto:jason.penton@smilecoms.com</a>]
<br>
<b>Sent:</b> Wednesday, January 15, 2014 1:21 PM<br>
<b>To:</b> Shankar<br>
<b>Cc:</b> SIP Router - Kamailio (OpenSER) and SIP Express
Router (SER) - Users Mailing List<br>
<b>Subject:</b> Re: [SR-Users] FW: Regd. t_suspend() and
t_continue()<o:p></o:p></span></p>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
<div>
<p class="MsoNormal">Hi Shankar,<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">What version of Kamailio are you
running? Kamailio -V<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<div>
<p class="MsoNormal">Cheers<o:p></o:p></p>
</div>
<div>
<p class="MsoNormal">Jason<o:p></o:p></p>
</div>
</div>
<div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><o:p> </o:p></p>
<div>
<p class="MsoNormal">On Wed, Jan 15, 2014 at 6:58 AM,
Shankar <<a moz-do-not-send="true"
href="mailto:shankar.rk@plintron.com" target="_blank">shankar.rk@plintron.com</a>>
wrote:<o:p></o:p></p>
<div>
<div>
<p>Hi Jason,<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>Please find below my response inline,<o:p></o:p></p>
<div>
<p> <o:p></o:p></p>
<p> <o:p></o:p></p>
<p>I have some questions for you as we have used
suspend/continue quite a lot in the IMS code and
don't have any leaks.<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>Firstly, why are you using pkg_mem for your hash_id
and label? Remember that you will be in 2 different
processes in the suspend and continue portions of
the code... so pkg_mem will not work - you should
use shm_mem instead.<o:p></o:p></p>
<p> <o:p></o:p></p>
</div>
<p><span style="background:yellow">[Shankar] We use
pkg_mem because we are invoking t_continue from the
same process ( using thread ).</span><o:p></o:p></p>
<div>
<p> <o:p></o:p></p>
<p>Secondly, how are you using top to tell that you
have a leak? Kamailio's memory is internally
managed.<o:p></o:p></p>
<p> <o:p></o:p></p>
</div>
<p><span style="background:yellow">[Shankar] After
running for say 20minutes, we get out of shared
memory error. Also in top output we observed
incremental increase in the shared usage of shared
memory for the process.</span><o:p></o:p></p>
<div>
<p> <o:p></o:p></p>
<p>Cheers<o:p></o:p></p>
<p>Jason<o:p></o:p></p>
<p> <o:p></o:p></p>
<p> <o:p></o:p></p>
<p>On Mon, Jan 13, 2014 at 1:29 PM, Shankar <<a
moz-do-not-send="true"
href="mailto:shankar.rk@plintron.com"
target="_blank">shankar.rk@plintron.com</a>>
wrote:<o:p></o:p></p>
<p> <o:p></o:p></p>
<p>> Re-sending without the attachment.<o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
</div>
<p>> *From:* Shankar [<a moz-do-not-send="true"
href="mailto:shankar.rk@plintron.com"
target="_blank">mailto:shankar.rk@plintron.com</a>]<o:p></o:p></p>
<p>> *Sent:* Monday, January 13, 2014 4:57 PM<o:p></o:p></p>
<p>> *To:* '<a moz-do-not-send="true"
href="mailto:sr-users@lists.sip-router.org"
target="_blank">sr-users@lists.sip-router.org</a>'<o:p></o:p></p>
<p>> *Subject:* Regd. t_suspend() and t_continue()<o:p></o:p></p>
<div>
<div>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> Hi,<o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> We are trying out the t_suspend() and
t_continue() in our test setup. <o:p></o:p></p>
<p>> We are facing memory leak ( both shm and pkg
as per top command results).<o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> Please find below the scenario,<o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> 1) Do a t_newtran()<o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> 2) Allocate pkg memory for hashid and
label.<o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> 3) Call t_suspend()<o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> 4) Do t_continue() when async result is
available<o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> 5) De-allocate pkg memory reserved for
hashid and label<o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> 6) Do a t_relay() which forwards the
sip message to another sip node.<o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> In the step (6) above, we see t_newtran()
allocates one more time <o:p></o:p></p>
<p>> shared memory for the same transaction.<o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> We tried t_release() after step (4) to
release the transaction as<o:p></o:p></p>
<p>> t_relay() anyways allocates new shared
memory. Nothing helped.<o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> Please let me know what are the logs you
would require to debug the same.<o:p></o:p></p>
<p>> I am attaching syslog for this run.<o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> Regards,<o:p></o:p></p>
<p>> <o:p></o:p></p>
<p>> Shankar<o:p></o:p></p>
<p class="MsoNormal"
style="mso-margin-top-alt:auto;mso-margin-bottom-alt:auto"> <o:p></o:p></p>
</div>
</div>
</div>
</div>
</div>
<p class="MsoNormal"><br>
<br clear="all">
<o:p></o:p></p>
<div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
<p class="MsoNormal">-- <o:p></o:p></p>
<div>
<div>
<table class="MsoNormalTable" style="width:6.25in"
width="600" border="0" cellpadding="0" cellspacing="0">
<tbody>
<tr>
<td style="padding:0in 0in 0in 0in" valign="top"><br>
</td>
</tr>
</tbody>
</table>
<p class="MsoNormal"><span style="display:none"><o:p> </o:p></span></p>
<table class="MsoNormalTable" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<td style="padding:7.5pt 0in 0in 11.25pt">
<p class="MsoNormal" style="line-height:13.5pt"><strong><span
style="font-family:"Arial","sans-serif";color:#75B343">Jason
Penton</span></strong><span
style="font-family:"Arial","sans-serif";color:#75B343"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:7.5pt 0in 0in 11.25pt">
<p class="MsoNormal" style="line-height:13.5pt"><strong><span
style="font-family:"Arial","sans-serif";color:#75B343">Senior
Manager: Applications and Services</span></strong><span
style="font-family:"Arial","sans-serif";color:#75B343"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:7.5pt 0in 0in 11.25pt">
<p class="MsoNormal" style="line-height:13.5pt"><strong><span
style="font-family:"Arial","sans-serif";color:#86919A">Smile
Communications Pty (Ltd)</span></strong><span
style="font-family:"Arial","sans-serif";color:#86919A"><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:0in 0in 0in 0in">
<table class="MsoNormalTable" style="width:100.0%"
width="100%" border="0" cellpadding="0"
cellspacing="0">
<tbody>
<tr>
<td style="width:27.0%;padding:7.5pt 0in 0in
11.25pt" width="27%">
<p class="MsoNormal"
style="line-height:13.5pt"><strong><span
style="font-family:"Arial","sans-serif";color:#86919A">Mobile:</span></strong><span
style="font-family:"Arial","sans-serif";color:#86919A"><o:p></o:p></span></p>
</td>
<td style="width:73.0%;padding:7.5pt 0in 0in
7.5pt" width="73%">
<p class="MsoNormal"
style="line-height:13.5pt"><span
style="font-family:"Arial","sans-serif";color:#86919A">+27
(0) 83 283 7000<o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:7.5pt 0in 0in 11.25pt">
<p class="MsoNormal"
style="line-height:13.5pt"><strong><span
style="font-family:"Arial","sans-serif";color:#86919A">Skype:</span></strong><span
style="font-family:"Arial","sans-serif";color:#86919A"><o:p></o:p></span></p>
</td>
<td style="padding:7.5pt 0in 0in 7.5pt">
<p class="MsoNormal"
style="line-height:13.5pt"><span
style="font-family:"Arial","sans-serif";color:#86919A">jason.barry.penton<o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</td>
</tr>
<tr>
<td style="padding:7.5pt 0in 0in 11.25pt">
<p class="MsoNormal" style="line-height:13.5pt"><span
style="font-family:"Arial","sans-serif";color:#75B343"><a
moz-do-not-send="true"
href="mailto:name.surname@smilecoms.com"
target="_blank"><span
style="color:#75B343;text-decoration:none">jason.penton@smilecoms.com</span></a><o:p></o:p></span></p>
</td>
</tr>
<tr>
<td style="padding:7.5pt 0in 0in 11.25pt">
<p class="MsoNormal" style="line-height:13.5pt"><span
style="font-family:"Arial","sans-serif";color:#75B343"><a
moz-do-not-send="true"
href="http://www.smilecoms.com/"
target="_blank"><span style="color:#75B343">www.smilecoms.com</span></a><br>
<img moz-do-not-send="true" id="_x0000_i1025"
src="http://196.33.227.129/%7Esmlcoms/sigs/pty/images/smile_signature_07_09.jpg"
height="144" width="420" border="0"><o:p></o:p></span></p>
</td>
</tr>
</tbody>
</table>
</div>
<p class="MsoNormal"><o:p> </o:p></p>
</div>
</div>
<pre>This email is subject to the disclaimer of Smile Communications at <a moz-do-not-send="true" href="http://www.smilecoms.com/disclaimer">http://www.smilecoms.com/disclaimer</a><o:p></o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
<pre><o:p> </o:p></pre>
</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></pre>
</body>
</html>