<div dir="ltr"><div>I&#39;ve modified my init.d file with<br><br>/usr/local/sbin/opensips -P /var/run/opensips/opensips.pid <b>-m 256 -M 8</b> -u opensips -g opensips -f /usr/local/etc/opensips/opensips.cfg<br><br></div>wait and see ;)<br><div><div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-16 15:12 GMT+02:00 Mickael Hubert <span dir="ltr">&lt;<a href="mailto:m.hubert@hexanet.fr" target="_blank">m.hubert@hexanet.fr</a>&gt;</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 dir="ltr"><div><div><div>Hi all,<br><br></div>after upgrade Opensips, I&#39;ve faced same memory error (see below).<br><br></div>Have you a help for me please ?<br><br></div>Thanks in advance<br><div><div><br>Sep 16 15:05:23 asbc2 /usr/local/sbin/opensips[15783]: ERROR:core:build_res_buf_from_sip_req: out of pkg memory; needs 395<br>Sep 16 15:05:23 asbc2 /usr/local/sbin/opensips[15776]: ERROR:core:build_res_buf_from_sip_req: out of pkg memory; needs 388<br>Sep 16 15:05:24 asbc2 /usr/local/sbin/opensips[15777]: ERROR:core:build_req_buf_from_sip_req: out of pkg memory<br>Sep 16 15:05:24 asbc2 /usr/local/sbin/opensips[15783]: ERROR:core:build_res_buf_from_sip_req: out of pkg memory; needs 433<br>Sep 16 15:05:24 asbc2 /usr/local/sbin/opensips[15776]: ERROR:core:build_res_buf_from_sip_req: out of pkg memory; needs 427<br>Sep 16 15:05:25 asbc2 /usr/local/sbin/opensips[15783]: ERROR:core:parse_from_header: out of pkg_memory<br>Sep 16 15:05:25 asbc2 /usr/local/sbin/opensips[15783]: ERROR:core:parse_from_header: out of pkg_memory<br>Sep 16 15:05:25 asbc2 /usr/local/sbin/opensips[15783]: ERROR:core:build_res_buf_from_sip_req: out of pkg memory; needs 355<br>Sep 16 15:05:25 asbc2 /usr/local/sbin/opensips[15783]: ERROR:core:parse_from_header: out of pkg_memory<br>Sep 16 15:05:25 asbc2 /usr/local/sbin/opensips[15783]: ERROR:core:build_res_buf_from_sip_req: out of pkg memory; needs 531<br>Sep 16 15:05:25 asbc2 /usr/local/sbin/opensips[15773]: ERROR:core:build_res_buf_from_sip_req: out of pkg memory; needs 355<br>Sep 16 15:05:25 asbc2 /usr/local/sbin/opensips[15773]: ERROR:core:new_credentials: no pkg memory left<br>Sep 16 15:05:25 asbc2 /usr/local/sbin/opensips[15773]: ERROR:core:new_credentials: no pkg memory left<span class=""><br><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></span>git revision: c529bb1<br>main.c compiled on 16:58:09 Sep 11 2014 with gcc 4.7<br><br><br></div></div></div><div class=""><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">2014-09-10 16:16 GMT+02:00 Mickael Hubert <span dir="ltr">&lt;<a href="mailto:m.hubert@hexanet.fr" target="_blank">m.hubert@hexanet.fr</a>&gt;</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 dir="ltr"><div><div><div>Ok thanks for your response,<br></div>I&#39;ll have upgrade my opensips immediately.<br><br></div>but for me, my memory conf is wrong.<br>-m 64 -M 4 with 20 childrens: 4Mo * 20 childrens = 80 Mo shared memory, but with -m option with 64Mo it&#39;s impossible no ?<br><br></div>thanks<br><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2014-09-10 13:27 GMT+02:00 Vlad Paiu <span dir="ltr">&lt;<a href="mailto:vladpaiu@opensips.org" target="_blank">vladpaiu@opensips.org</a>&gt;</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 text="#000000" bgcolor="#FFFFFF">
    <div>Hello,<br>
      <br>
      Can you please upgrade to the latest 1.11 from GIT ?<br>
      There has been a fix related to this on GIT starting from
<a href="https://github.com/OpenSIPS/opensips/commit/ea9191b6993a36b6190eb218f318d0a876421311" target="_blank">https://github.com/OpenSIPS/opensips/commit/ea9191b6993a36b6190eb218f318d0a876421311</a><br>
      <br>
      Best Regards,<br>
      <pre cols="72">Vlad Paiu
OpenSIPS Developer
<a href="http://www.opensips-solutions.com" target="_blank">http://www.opensips-solutions.com</a> </pre><div><div>
      On 10.09.2014 12:58, Mickael Hubert wrote:<br>
    </div></div></div>
    <blockquote type="cite"><div><div>
      <div dir="ltr">
        <div>Hi Bogdan,<br>
        </div>
        in addition, we use these options: &quot;-m 64 -M 4&quot; and in
        opensips.cfg &quot;children=20&quot;<br>
        <pre><span style="font-family:arial,helvetica,sans-serif"><font>private memory: 4 Mo
</font></span></pre>
        <pre><span style="font-family:arial,helvetica,sans-serif"><font>Share memory: 64Mo</font></span>
<span style="font-family:arial,helvetica,sans-serif"><font>
We use a server with 16Go of ram</font></span>

</pre>
        <pre>it&#39;s good conf ?
</pre>
        <pre></pre>
        <pre><span style="font-family:arial,helvetica,sans-serif"><font>Thanks a lot for your help.</font></span>
</pre>
        <div>
          <div>
            <div class="gmail_extra"><br>
              <div class="gmail_quote">2014-09-10 11:44 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:1px solid rgb(204,204,204);padding-left:1ex">
                  <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:1px solid rgb(204,204,204);padding-left:1ex">[root@asbc2b
                        kemathy]# /usr/local/sbin/opensips -V<span><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>
                        </span>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>
                      <span><tt>  &quot;- the &quot;out of mem&quot; was
                          report</tt><tt>ed for pkg memory (and not for
                          shm)&quot;</tt><tt>  </tt></span></div>
                    <div><tt>==&gt; The out of mem was reported for pkg
                        memory</tt></div>
                    <span>
                      <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>
                    </span>
                    <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:1px solid rgb(204,204,204);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" target="_blank">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" target="_blank">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" target="_blank">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>
                      <span>
                        <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>
                      </span></div>
                    <div class="gmail_extra"><br>
                    </div>
                    <div class="gmail_extra"><br>
                    </div>
                    <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>
                        <div>
                          <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:1px solid rgb(204,204,204);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>
                                    <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> On 10.09.2014 09:53, Kevin
                                      Mathy wrote:<br>
                                    </div>
                                  </div>
                                </div>
                                <blockquote type="cite">
                                  <div>
                                    <div>
                                      <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:1px solid rgb(204,204,204);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:1px solid rgb(204,204,204);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>
                    </div>
                  </div>
                  <br>
                  <img src="http://www.hexanet.fr/sites/files/hexanet/files/utilities/signature_hexanet.gif"></blockquote>
              </div>
              <br>
              <br clear="all">
              <br>
              -- <br>
              <div dir="ltr">Cordialement<br>
                <br>
                HUBERT Mickaël<br>
                Ingénieur VOIP - Hexanet<br>
              </div>
            </div>
          </div>
        </div>
      </div>
      <br>
      </div></div><span><img src="http://www.hexanet.fr/sites/files/hexanet/files/utilities/signature_hexanet.gif"><br>
      <fieldset></fieldset>
      <br>
      <pre>_______________________________________________
Users mailing list
<a href="mailto:Users@lists.opensips.org" target="_blank">Users@lists.opensips.org</a>
<a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </span></blockquote>
    <br>
  </div>

</blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Cordialement<br><br>HUBERT Mickaël<br>Ingénieur VOIP - Hexanet<br></div>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Cordialement<br><br>HUBERT Mickaël<br>Ingénieur VOIP - Hexanet<br></div>
</div>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div dir="ltr">Cordialement<br><br>HUBERT Mickaël<br>Ingénieur VOIP - Hexanet<br></div>
</div></div></div></div>

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