<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p><tt>Hi,</tt></p>
    <p><tt><tt>Have you tried editing /etc/sysconfig/opensips?<tt> IIRC<tt>,
              <tt>that file overrides the opensips.service values<tt>.</tt><tt></tt></tt></tt></tt></tt></tt></p>
    <p><tt><tt><tt><tt><tt><tt><tt>Regards,</tt><br>
                </tt></tt></tt></tt></tt></tt></p>
    <pre class="moz-signature" cols="72">Liviu Chircu
OpenSIPS Developer
<a class="moz-txt-link-freetext" href="http://www.opensips-solutions.com">http://www.opensips-solutions.com</a></pre>
    <div class="moz-cite-prefix">On 14.12.2017 17:25, Marco Hierl wrote:<br>
    </div>
    <blockquote type="cite"
      cite="mid:6a05f1e7d0684bf18e4852535d6d4a48@next-id.de">
      <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
      <meta name="Generator" content="Microsoft Word 14 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
@font-face
        {font-family:Verdana;
        panose-1:2 11 6 4 3 5 4 4 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:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Verdana","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
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;}
pre
        {mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New";
        color:black;}
tt
        {mso-style-priority:99;
        font-family:"Courier New";}
p.MsoAcetate, li.MsoAcetate, div.MsoAcetate
        {mso-style-priority:99;
        mso-style-link:"Sprechblasentext Zchn";
        margin:0cm;
        margin-bottom:.0001pt;
        font-size:8.0pt;
        font-family:"Tahoma","sans-serif";
        color:black;
        mso-fareast-language:EN-US;}
span.HTMLVorformatiertZchn
        {mso-style-name:"HTML Vorformatiert Zchn";
        mso-style-priority:99;
        mso-style-link:"HTML Vorformatiert";
        font-family:Consolas;
        color:black;}
span.SprechblasentextZchn
        {mso-style-name:"Sprechblasentext Zchn";
        mso-style-priority:99;
        mso-style-link:Sprechblasentext;
        font-family:"Tahoma","sans-serif";}
span.E-MailFormatvorlage22
        {mso-style-type:personal;
        font-family:"Verdana","sans-serif";
        color:windowtext;}
span.E-MailFormatvorlage23
        {mso-style-type:personal;
        font-family:"Verdana","sans-serif";
        color:#1F497D;}
span.E-MailFormatvorlage24
        {mso-style-type:personal;
        font-family:"Verdana","sans-serif";
        color:#1F497D;}
span.E-MailFormatvorlage25
        {mso-style-type:personal-reply;
        font-family:"Verdana","sans-serif";
        color:#1F497D;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-size:10.0pt;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
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;color:#1F497D">Hi Răzvan,<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;color:#1F497D"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;color:#1F497D">You are right…  it
            starts with opensips -M 128 –f my.cnf<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;color:#1F497D" lang="EN-GB">Bevor I
            started with „/etc/init.d/opensips start”. A change in that
            file did not help either. I also changed the value in
            “opensips.service” config file without success. Is the
            memory debugging not allowed as service?<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;color:#1F497D" lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;color:#1F497D" lang="EN-GB">Best
            regards<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;color:#1F497D" lang="EN-GB">  Marco<o:p></o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;color:#1F497D" lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;color:#1F497D" lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;color:#1F497D" lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;color:#1F497D" lang="EN-GB"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span
            style="font-size:11.0pt;color:#1F497D" lang="EN-GB"><o:p> </o:p></span></p>
        <div>
          <div style="border:none;border-top:solid #B5C4DF
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
style="font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:DE">Von:</span></b><span
style="font-family:"Tahoma","sans-serif";color:windowtext;mso-fareast-language:DE">
                Users [<a class="moz-txt-link-freetext" href="mailto:users-bounces@lists.opensips.org">mailto:users-bounces@lists.opensips.org</a>]
                <b>Im Auftrag von </b>Razvan Crainea<br>
                <b>Gesendet:</b> Donnerstag, 14. Dezember 2017 15:19<br>
                <b>An:</b> <a class="moz-txt-link-abbreviated" href="mailto:users@lists.opensips.org">users@lists.opensips.org</a><br>
                <b>Betreff:</b> Re: [OpenSIPS-Users] when DBG_MALLOC is
                checked it leads to “not enough free pkg memory”<o:p></o:p></span></p>
          </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p class="MsoNormal"><tt>Hi, Marco!</tt><span
            style="font-family:"Courier New""><br>
            <br>
            <tt>Are you sure that opensips is indeed starting with the
              right parameter when you set P_MEMORY? Can you start
              opensips "manually" like:</tt><br>
            <br>
            <tt>opensips -M 128</tt><br>
            <br>
            <tt>Best regards,</tt><br>
            <br>
            <br>
          </span><o:p></o:p></p>
        <pre>Răzvan Crainea<o:p></o:p></pre>
        <pre>OpenSIPS Developer<o:p></o:p></pre>
        <pre><a href="http://www.opensips-solutions.com" moz-do-not-send="true">www.opensips-solutions.com</a><o:p></o:p></pre>
        <div>
          <p class="MsoNormal">On 12/14/2017 03:03 PM, Marco Hierl
            wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D">Dear all,</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB">I try
              to follow „<a
                href="https://www.opensips.org/Documentation/TroubleShooting-OutOfMem"
                moz-do-not-send="true">https://www.opensips.org/Documentation/TroubleShooting-OutOfMem</a>
              “, but when DBG_MALLOC is checked, I got “not enough free
              pkg memory” when starting OpenSIPS</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB">Dec 14
              12:53:39 sbc-welt-hh1 opensips[30378]: Dec 14 12:53:39
              [30378] ERROR:core:qm_malloc: not enough free pkg memory
              (0 bytes left, need 200), please increase the "-M" command
              line parameter!</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB">Dec 14
              12:53:39 sbc-welt-hh1 opensips[30378]: Dec 14 12:53:39
              [30378] CRITICAL:core:mk_action: pkg memory allocation
              failure</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB">I
              increased P_MEMORY=128 in /etc/default/opensips, but it
              did not help.</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB">If I
              uncheck DBG_MALLOC it’s starting fine.</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB">I’m
              using debian 9.3 and</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB">version:
              opensips 2.3.2 (x86_64/linux)</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB">flags:
              STATS: On, DISABLE_NAGLE, USE_MCAST, SHM_MMAP, PKG_MALLOC,
              QM_MALLOC, DBG_MALLOC, FAST_LOCK-ADAPTIVE_WAIT</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB">ADAPTIVE_WAIT_LOOPS=1024,
              MAX_RECV_BUFFER_SIZE 262144, MAX_LISTEN 16, MAX_URI_SIZE
              1024, BUF_SIZE 65535</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB">poll
              method support: poll, epoll_lt, epoll_et, sigio_rt,
              select.</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB">git
              revision: 2ae87c644</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB">main.c
              compiled on 12:52:27 Dec 14 2017 with gcc 6.3.0</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB">thanks
              and best regards</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:11.0pt;color:#1F497D" lang="EN-GB"> 
              Marco</span><o:p></o:p></p>
          <p class="MsoNormal"><span
              style="font-size:12.0pt;font-family:"Times New
              Roman","serif";mso-fareast-language:DE"><br>
              <br>
              <br>
              <o:p></o:p></span></p>
          <pre>_______________________________________________<o:p></o:p></pre>
          <pre>Users mailing list<o:p></o:p></pre>
          <pre><a href="mailto:Users@lists.opensips.org" moz-do-not-send="true">Users@lists.opensips.org</a><o:p></o:p></pre>
          <pre><a href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users" moz-do-not-send="true">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a><o:p></o:p></pre>
        </blockquote>
        <p class="MsoNormal"><span
            style="font-size:12.0pt;font-family:"Times New
            Roman","serif";mso-fareast-language:DE"><o:p> </o:p></span></p>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Users@lists.opensips.org">Users@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/users">http://lists.opensips.org/cgi-bin/mailman/listinfo/users</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>