<div dir="ltr">Hi Bogdan, <div><br></div><div>Here&#39;s the version of opensips we use :</div><div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">[root@asbc2b kemathy]# /usr/local/sbin/opensips -V<br>version: opensips 1.11.2-notls (x86_64/linux)<br>flags: STATS: On, USE_IPV6, USE_TCP, DISABLE_NAGLE, USE_MCAST, SHM_MEM, SHM_MMAP, PKG_MALLOC, DBG_QM_MALLOC, FAST_LOCK-ADAPTIVE_WAIT<br>ADAPTIVE_WAIT_LOOPS=1024, MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE 1024, BUF_SIZE 65535<br>poll method support: poll, epoll_lt, epoll_et, sigio_rt, select.<br>git revision: ff23ed0<br>main.c compiled on 19:24:42 Jul 23 2014 with gcc 4.4.7</blockquote><div><br></div><div>About those points : </div><tt>  &quot;- the &quot;out of mem&quot; was report</tt><tt>ed for pkg memory (and not for shm)&quot;</tt><tt>  </tt></div><div><tt>==&gt; The out of mem was reported for pkg memory</tt></div><div><tt> </tt></div><div><tt>&quot; - you sent the SIGUSR1 signal to the process complaining about lack </tt><tt>of mem</tt> &quot;</div><div>==&gt; I don&#39;t know if I made it well... So, here are two links pointing to other memdumps, taken on processes which seem to lack of mem</div><div><br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">Sep 10 05:34:05 asbc2b /usr/local/sbin/opensips[920]: ERROR:core:build_res_buf_from_sip_req: out of pkg memory; needs 522<br>Sep 10 05:34:04 asbc2b /usr/local/sbin/opensips[923]: ERROR:core:received_builder: out of pkg memory<br>Sep 10 05:33:57 asbc2b /usr/local/sbin/opensips[937]: ERROR:core:parse_headers: pkg memory allocation failed<br>Sep 10 05:33:57 asbc2b /usr/local/sbin/opensips[937]: ERROR:core:add_lump_rpl: no free pkg memory !</blockquote><div class="gmail_extra"><div class="gmail_extra"><br></div><div class="gmail_extra"><a href="https://www.dropbox.com/s/p62hb16wpk0i86e/memdump_process_920.txt?dl=0">https://www.dropbox.com/s/p62hb16wpk0i86e/memdump_process_920.txt?dl=0</a><br></div><div class="gmail_extra"><a href="https://www.dropbox.com/s/uim49o6zvj6zvu3/memdump_process_923.txt?dl=0">https://www.dropbox.com/s/uim49o6zvj6zvu3/memdump_process_923.txt?dl=0</a><br></div><div class="gmail_extra"><a href="https://www.dropbox.com/s/c6tksw4j4lgk5d3/memdump_process_937.txt?dl=0">https://www.dropbox.com/s/c6tksw4j4lgk5d3/memdump_process_937.txt?dl=0</a><br></div><div class="gmail_extra"><br></div><div class="gmail_extra">So now, I&#39;m sure that the memdumps I&#39;ve taken concern processes impacted by the lack of pkg mem...</div><div class="gmail_extra"><br></div><div class="gmail_extra">Thanks for your help, </div><div class="gmail_extra"><br></div><div class="gmail_extra">Kevin</div></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br></div><div class="gmail_extra"><br clear="all"><div><b><div><span style="font-weight:normal">Bien cordialement, </span></div><div><span style="font-weight:normal">Best Regards, </span></div><div><span style="font-weight:normal"><br></span></div></b><b>Kevin MATHY</b> |<b> </b>Ingénieur VoIP<br><div><div><b><br></b></div></div></div>
<br><div class="gmail_quote">2014-09-10 10:04 GMT+02:00 Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span>:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
  
    
  
  <div text="#000000" bgcolor="#FFFFFF">
    <div><tt>Kevin,<br>
        This is stranger as nothing in the dump points to a leak/issue -
        do you get the out of mem error during a SB query ?<br>
        <br>
        Regards,<br>
      </tt><span class="">
      <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre></span><div><div class="h5">
      On 10.09.2014 09:53, Kevin Mathy wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div class="h5">
      <div dir="ltr">Hi Bogdan, 
        <div><br>
        </div>
        <div>Got the same errors on my second opensips server (second
          node of the cluster). Here is the memdump :</div>
        <div><a href="https://www.dropbox.com/s/d2gacgrxik3xs1t/memdump_server2_1.txt?dl=0" target="_blank">https://www.dropbox.com/s/d2gacgrxik3xs1t/memdump_server2_1.txt?dl=0</a><br>
        </div>
        <div><br>
        </div>
        <div>Thanks for your help,</div>
        <div><br>
        </div>
        <div>Kevin</div>
        <div><br>
        </div>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br clear="all">
        <div><b>
            <div><span style="font-weight:normal">Bien cordialement, </span></div>
            <div><span style="font-weight:normal">Best Regards, </span></div>
            <div><span style="font-weight:normal"><br>
              </span></div>
          </b><b>Kevin MATHY</b> |<b> </b>Ingénieur VoIP<br>
          <div>
            <div><b><br>
              </b></div>
          </div>
        </div>
        <br>
        <div class="gmail_quote">2014-09-09 14:56 GMT+02:00 Kevin Mathy
          <span dir="ltr">&lt;<a href="mailto:k.mathy@hexanet.fr" target="_blank">k.mathy@hexanet.fr</a>&gt;</span>:<br>
          <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
            <div dir="ltr">Hi Bogdan, 
              <div><br>
              </div>
              <div>I&#39;ve got now a memdump ! </div>
              <div><a href="https://www.dropbox.com/s/5hb678r0ym9vtt1/memdump1.txt?dl=0" target="_blank">https://www.dropbox.com/s/5hb678r0ym9vtt1/memdump1.txt?dl=0</a><br>
              </div>
              <div><br>
              </div>
              <div>And if you need the list of the opensips processes
                running at the moment : </div>
              <div><a href="https://www.dropbox.com/s/hqurr3ilamc0a0g/opensips_processes_list.txt?dl=0" target="_blank">https://www.dropbox.com/s/hqurr3ilamc0a0g/opensips_processes_list.txt?dl=0</a><br>
              </div>
              <div><br>
              </div>
              <div>I hope it&#39;ll be ok... If you need more things, I
                didn&#39;t have restarted the service yet, so I&#39;m able to
                get other memdumps.</div>
              <span>
                <div><br>
                </div>
                <div>Thanks for your help, </div>
                <div><br>
                </div>
                <div>Kevin</div>
              </span>
              <div><br>
                <div class="gmail_extra"><span><br clear="all">
                    <div><b>
                        <div><span style="font-weight:normal">Bien
                            cordialement, </span></div>
                        <div><span style="font-weight:normal">Best
                            Regards, </span></div>
                        <div><span style="font-weight:normal"><br>
                          </span></div>
                      </b><b>Kevin MATHY</b> |<b> </b>Ingénieur VoIP<br>
                      <div>
                        <div><b><br>
                          </b></div>
                      </div>
                    </div>
                    <br>
                  </span>
                  <div class="gmail_quote"><span>2014-09-09
                      13:06 GMT+02:00 Bogdan-Andrei Iancu <span dir="ltr">&lt;<a href="mailto:bogdan@opensips.org" target="_blank">bogdan@opensips.org</a>&gt;</span>:<br>
                    </span>
                    <blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left-width:1px;border-left-color:rgb(204,204,204);border-left-style:solid;padding-left:1ex">
                      <div text="#000000" bgcolor="#FFFFFF">
                        <div><tt>Hi Kevin,<br>
                            <br>
                            <span> yes, that&#39;s the right way of
                              getting a mem dump during runtime. Also
                              you will automatically get one during the
                              shutdown procedure.<br>
                              <br>
                              Best regards,<br>
                            </span></tt><span><span>
                              <pre cols="72">Bogdan-Andrei Iancu
OpenSIPS Founder and Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a></pre>
                            </span></span></div>
                        <br>
                      </div>
                    </blockquote>
                  </div>
                  <br>
                </div>
              </div>
            </div>
          </blockquote>
        </div>
        </div></div></div><br></blockquote>
    <br>
  </div>

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

<br>
<img src="http://www.hexanet.fr/sites/files/hexanet/files/utilities/signature_hexanet.gif">