<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
  
    
  
  <div bgcolor="#FFFFFF">
    <p>Hello,</p>
    <p>do you get also dialog statistics? tm stats are not relevant in
      this context.</p>
    <p>Cheers,<br>
      Daniel<br></p></div></blockquote><div>Hi,<br><br></div><div>I'm re-running SIPp.<br>The share memory is decreaing and will run out of memory.<br>Is below information enough ?<br></div><div><br></div><div><br># kamctl stats shmem<br>shmem:fragments = 40<br>shmem:free_size = 312842424<br>shmem:max_used_size = 224156616<br>shmem:real_used_size = 224028488<br>shmem:total_size = 536870912<br>shmem:used_size = 140091536<br><br>#kamctl mi dlg_list|grep dialog|wc -l<br>121500<br><br>
# kamctl dialog show|grep dialog|wc -l<br>123363

<br><br># kamctl fifo get_statistics :dialog::all<br>cdp:average_response_time = 3<br>cdp:queuelength = 0<br>cdp:replies_received = 20000<br>cdp:replies_response_time = 72658<br>cdp:timeout = 0<br>core:bad_URIs_rcvd = 0<br>core:bad_msg_hdr = 0<br>core:drop_replies = 0<br>core:drop_requests = 0<br>core:err_replies = 0<br>core:err_requests = 0<br>core:fwd_replies = 0<br>core:fwd_requests = 122460<br>core:rcv_replies = 548443<br>core:rcv_requests = 384642<br>core:unsupported_methods = 0<br>dialog_ng:active = 61230<br>dialog_ng:early = 37<br>dialog_ng:expired = 0<br>dialog_ng:processed = 61267<br>dns:failed_dns_request = 0<br>ims_auth:mar_avg_response_time = 1<br>ims_auth:mar_replies_received = 10000<br>ims_auth:mar_replies_response_time = 16199<br>ims_auth:mar_timeouts = 0<br>ims_registrar_scscf:accepted_regs = 10000<br>ims_registrar_scscf:default_expire = 3660<br>ims_registrar_scscf:default_expires_range = 0<br>ims_registrar_scscf:max_contacts = 1<br>ims_registrar_scscf:max_expires = 654800<br>ims_registrar_scscf:rejected_regs = 0<br>ims_registrar_scscf:sar_avg_response_time = 5<br>ims_registrar_scscf:sar_replies_received = 10000<br>ims_registrar_scscf:sar_replies_response_time = 56459<br>ims_registrar_scscf:sar_timeouts = 0<br>ims_usrloc_scscf:active_contacts = 10000<br>ims_usrloc_scscf:active_impus = 10000<br>ims_usrloc_scscf:active_subscriptions = 10000<br>ims_usrloc_scscf:contact_collisions = 28<br>ims_usrloc_scscf:impu_collisions = 27<br>ims_usrloc_scscf:subscription_collisions = 27<br>mysql:driver_errors = 0<br>shmem:fragments = 30<br>shmem:free_size = 311718120<br>shmem:max_used_size = 225269176<br>shmem:real_used_size = 225152792<br>shmem:total_size = 536870912<br>shmem:used_size = 140599664<br>sl:1xx_replies = 0<br>sl:200_replies = 0<br>sl:202_replies = 0<br>sl:2xx_replies = 0<br>sl:300_replies = 0<br>sl:301_replies = 0<br>sl:302_replies = 0<br>sl:3xx_replies = 0<br>sl:400_replies = 0<br>sl:401_replies = 0<br>sl:403_replies = 0<br>sl:404_replies = 0<br>sl:407_replies = 0<br>sl:408_replies = 0<br>sl:483_replies = 0<br>sl:4xx_replies = 0<br>sl:500_replies = 0<br>sl:5xx_replies = 0<br>sl:6xx_replies = 0<br>sl:failures = 0<br>sl:received_ACKs = 0<br>sl:sent_err_replies = 0<br>sl:sent_replies = 122534<br>sl:xxx_replies = 122534<br>tcp:con_reset = 0<br>tcp:con_timeout = 0<br>tcp:connect_failed = 0<br>tcp:connect_success = 0<br>tcp:current_opened_connections = 0<br>tcp:current_write_queue_size = 0<br>tcp:established = 0<br>tcp:local_reject = 0<br>tcp:passive_open = 0<br>tcp:send_timeout = 0<br>tcp:sendq_full = 0<br><br>#<br><br></div><div> </div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div bgcolor="#FFFFFF"><p>
    </p><div><div class="gmail-h5">
    <br>
    <div class="gmail-m_-2919154005275445098moz-cite-prefix">On 10.04.18 09:19, tyd wrote:<br>
    </div>
    <blockquote type="cite">
      <div dir="ltr">
        <div class="gmail_extra">
          <div class="gmail_quote">
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              <div bgcolor="#FFFFFF">
                <p>Hello,<br>
                </p>
                <span> <br>
                  <div class="gmail-m_-2919154005275445098m_161503467617737076moz-cite-prefix">On
                    10.04.18 07:25, tyd wrote:<br>
                  </div>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>
                        <div>
                          <div>
                            <div>Hi, Daniel<br>
                              <br>
                            </div>
                            No, the dialogs were not terminated after 10
                            minutes if no BYE message was sent.<br>
                          </div>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                  <br>
                </span> Not using ims_dialog, but it may be that it
                doesn't send bye when the dialog lifetime elapses, just
                destroys the structure it keeps in memory. With the
                other dialog module, there is a parameter to set if you
                want BYE to be sent.<span><br>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>
                        <div>But if Default value(43200) was set,  the
                          S-CSCF will run out of memory finally (after
                          200000 calls).<br>
                        </div>
                      </div>
                    </div>
                  </blockquote>
                </span> Were all these calls still active?<span><br>
                </span></div>
              <div bgcolor="#FFFFFF"><span><br>
                </span></div>
            </blockquote>
            <div>Hi, <br>
              In SIPp, the calls were finishes.<br>
            </div>
            <div>But in Kamailio, the calls seem keep in the memory and
              run out of memory. <br>
              Can any parameter solve this problem? 
              <br>
              Is it  a solution  to set "ims_dialog", "default_timeout"
              to  600 ?<br>
            </div>
            <div>
              <pre># kamcmd tm.stats
{
        current: 69
        waiting: 0
        total: 991300
        total_local: 0
        rpl_received: 2183891
        rpl_generated: 20232
        rpl_sent: 1475856
        6xx: 0
        5xx: 2704
        4xx: 10124
        3xx: 0
        2xx: 978329
        created: 991300
        freed: 991231
        delayed_free: 0
}
# kamctl stats shmem
shmem:fragments = 1630
shmem:free_size = 4303040
shmem:max_used_size = 536870912
shmem:real_used_size = 532567872
shmem:total_size = 536870912
shmem:used_size = 415668000</pre>
               </div>
            <div> </div>
            <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
              <div bgcolor="#FFFFFF"><span>
                  <blockquote type="cite">
                    <div dir="ltr">
                      <div>
                        <div><br>
                        </div>
                        Have any relation with this parameter and memory
                        release ?<br>
                      </div>
                    </div>
                  </blockquote>
                  <br>
                </span> Yes, the structure kept for each call is
                destroyed after lifetime. But it should be also
                destroyed if the BYE is received.<br>
                <br>
                Cheers,<br>
                Daniel
                <div>
                  <div class="gmail-m_-2919154005275445098h5"><br>
                    <br>
                    <blockquote type="cite">
                      <div dir="ltr">Any impacts if using value 600 at
                        production environment ?<br>
                        <div>
                          <div>Thanks.<br>
                          </div>
                          <div>
                            <div>
                              <div>
                                <div>
                                  <div class="gmail_extra"><br>
                                    <div class="gmail_quote">2018-04-10
                                      0:27 GMT+08:00 Daniel-Constantin
                                      Mierla <span dir="ltr"><<a href="mailto:miconda@gmail.com" target="_blank">miconda@gmail.com</a>></span>:<br>
                                      <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
                                        <div bgcolor="#FFFFFF">
                                          <p>Hello,</p>
                                          <p>that should be the call
                                            lifetime. Are the dialogs
                                            terminated after 10 minutes?</p>
                                          <p>Cheers,<br>
                                            Daniel<br>
                                          </p>
                                          <div>
                                            <div class="gmail-m_-2919154005275445098m_161503467617737076h5">
                                              <br>
                                              <div class="gmail-m_-2919154005275445098m_161503467617737076m_4887002841488808375moz-cite-prefix">On
                                                09.04.18 16:58, tyd
                                                wrote:<br>
                                              </div>
                                            </div>
                                          </div>
                                          <blockquote type="cite">
                                            <div>
                                              <div class="gmail-m_-2919154005275445098m_161503467617737076h5">
                                                <div dir="ltr">
                                                  <div>
                                                    <div>
                                                      <div>
                                                        <div>Dear all,<br>
                                                          <br>
                                                        </div>
                                                        What's the
                                                        meaning of
                                                        ims_dialog 
                                                        default_timeout
                                                        parameter ? <br>
                                                        <span class="gmail-m_-2919154005275445098m_161503467617737076m_4887002841488808375emphasis"><i>Default
                                                          value is <span class="gmail-m_-2919154005275445098m_161503467617737076m_4887002841488808375gmail-quote">「<span class="gmail-m_-2919154005275445098m_161503467617737076m_4887002841488808375gmail-quote">43200
                                                          (12 hours)</span>」</span></i></span>
                                                        <br>
                                                        <br>
                                                      </div>
                                                      When
                                                      modparam("ims_dialog",
                                                      "default_timeout",
                                                      600) was set,<br>
                                                    </div>
                                                    the situation of
                                                    Kamailio S-CSCF out
                                                    of memory was solved
                                                    and is running
                                                    smoothly.<br>
                                                    <br>
                                                  </div>
                                                  <div>Debian 8 with
                                                    Kamailio 4.4.7 <br>
                                                  </div>
                                                  <div><br>
                                                  </div>
                                                  <br>
                                                  <div><br>
                                                  </div>
                                                </div>
                                                <br>
                                                <fieldset class="gmail-m_-2919154005275445098m_161503467617737076m_4887002841488808375mimeAttachmentHeader"></fieldset>
                                                <br>
                                              </div>
                                            </div>
                                            <pre>______________________________<wbr>_________________
Kamailio (SER) - Users Mailing List
<a class="gmail-m_-2919154005275445098m_161503467617737076m_4887002841488808375moz-txt-link-abbreviated" href="mailto:sr-users@lists.kamailio.org" target="_blank">sr-users@lists.kamailio.org</a>
<a class="gmail-m_-2919154005275445098m_161503467617737076m_4887002841488808375moz-txt-link-freetext" href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" target="_blank">https://lists.kamailio.org/cgi<wbr>-bin/mailman/listinfo/sr-users</a><span class="gmail-m_-2919154005275445098m_161503467617737076HOEnZb"><font color="#888888">
</font></span></pre>
                                            <span class="gmail-m_-2919154005275445098m_161503467617737076HOEnZb"><font color="#888888"> </font></span></blockquote>
                                          <span class="gmail-m_-2919154005275445098m_161503467617737076HOEnZb"><font color="#888888"> <br>
                                              <pre class="gmail-m_-2919154005275445098m_161503467617737076m_4887002841488808375moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="gmail-m_-2919154005275445098m_161503467617737076m_4887002841488808375moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="gmail-m_-2919154005275445098m_161503467617737076m_4887002841488808375moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="gmail-m_-2919154005275445098m_161503467617737076m_4887002841488808375moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="gmail-m_-2919154005275445098m_161503467617737076m_4887002841488808375moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
                                            </font></span></div>
                                      </blockquote>
                                    </div>
                                    <br>
                                  </div>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </blockquote>
                    <br>
                    <pre class="gmail-m_-2919154005275445098m_161503467617737076moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="gmail-m_-2919154005275445098m_161503467617737076moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="gmail-m_-2919154005275445098m_161503467617737076moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="gmail-m_-2919154005275445098m_161503467617737076moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="gmail-m_-2919154005275445098m_161503467617737076moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
                  </div>
                </div>
              </div>
            </blockquote>
          </div>
          <br>
        </div>
      </div>
    </blockquote>
    <br>
    <pre class="gmail-m_-2919154005275445098moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="gmail-m_-2919154005275445098moz-txt-link-abbreviated" href="http://www.twitter.com/miconda" target="_blank">www.twitter.com/miconda</a> -- <a class="gmail-m_-2919154005275445098moz-txt-link-abbreviated" href="http://www.linkedin.com/in/miconda" target="_blank">www.linkedin.com/in/miconda</a>
Kamailio Advanced Training - April 16-18, 2018, Berlin - <a class="gmail-m_-2919154005275445098moz-txt-link-abbreviated" href="http://www.asipto.com" target="_blank">www.asipto.com</a>
Kamailio World Conference - May 14-16, 2018 - <a class="gmail-m_-2919154005275445098moz-txt-link-abbreviated" href="http://www.kamailioworld.com" target="_blank">www.kamailioworld.com</a></pre>
  </div></div></div>

</blockquote></div><br></div></div>