<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <div class="moz-cite-prefix">Hello Mike,<br>
      <br>
      Could you come up with an estimate for the rows of the biggest
      MySQL tables (e.g. dr_rules, dialplan, etc.)? Using this
      information, we can estimate the minimum amount of RAM we need.
      400 cc should consume like 10MB of shared memory, so the problem
      is clearly somewhere else.<br>
      <br>
      If big tables are not the problem, then we're most likely talking
      about a leak. Are you able to manually recompile and install
      OpenSIPS? If yes, I will ask you to set up a debug version. You
      can follow the instructions at [1].<br>
      <br>
      1: <a class="moz-txt-link-freetext"
        href="http://www.opensips.org/Documentation/TroubleShooting-OutOfMem">http://www.opensips.org/Documentation/TroubleShooting-OutOfMem</a><br>
      <br>
      Best regards,
      <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>
      On 03/03/2014 05:41 PM, Mike Tesliuk wrote:<br>
    </div>
    <blockquote
cite="mid:CAKNtoCHAjyJ1ygFo4L17C9_LYxdcJTUyMOR8-zxByGa-Sa2E_g@mail.gmail.com"
      type="cite">
      <div dir="ltr">
        <div>I put the -m to 7168 and -M to 512 , i dont think this is a
          good way and as i never see this happen before on a real
          server (not VM) i think that the kvm can be the problem, i
          have 400 call with 8MB private memory without problem i cant
          understand how this server got this problem otherwise the VM
          thing.<br>
          <br>
        </div>
        i have the system working now from two days, let see what happen<br>
        <div><br>
        </div>
      </div>
      <div class="gmail_extra"><br>
        <br>
        <div class="gmail_quote">2014-02-28 15:24 GMT-05:00 Mike Tesliuk
          <span dir="ltr">&lt;<a moz-do-not-send="true"
              href="mailto:mike@ultra.net.br" target="_blank">mike@ultra.net.br</a>&gt;</span>:<br>
          <blockquote class="gmail_quote" style="margin:0 0 0
            .8ex;border-left:1px #ccc solid;padding-left:1ex">
            <div dir="ltr">
              <div>
                <div>
                  <div>
                    <div>
                      <div>
                        <div>
                          <div>Hello Guys, <br>
                            <br>
                          </div>
                          I got the same problem again<br>
                          <br>
                        </div>
                        this is how im executing<br>
                        <br>
                        &nbsp;/usr/local/opensips/sbin/opensips -P
                        /var/run/opensips.pid -f
                        /etc/opensips/opensips.cfg -m 1024 -M 64<br>
                        &nbsp;/usr/local/opensips/sbin/opensips -P
                        /var/run/opensips.pid -f
                        /etc/opensips/opensips.cfg -m 1024 -M 64<br>
                        &nbsp;/usr/local/opensips/sbin/opensips -P
                        /var/run/opensips.pid -f
                        /etc/opensips/opensips.cfg -m 1024 -M 64<br>
                        &nbsp;/usr/local/opensips/sbin/opensips -P
                        /var/run/opensips.pid -f
                        /etc/opensips/opensips.cfg -m 1024 -M 64<br>
                        &nbsp;/usr/local/opensips/sbin/opensips -P
                        /var/run/opensips.pid -f
                        /etc/opensips/opensips.cfg -m 1024 -M 64<br>
                        &nbsp;/usr/local/opensips/sbin/opensips -P
                        /var/run/opensips.pid -f
                        /etc/opensips/opensips.cfg -m 1024 -M 64<br>
                        &nbsp;/usr/local/opensips/sbin/opensips -P
                        /var/run/opensips.pid -f
                        /etc/opensips/opensips.cfg -m 1024 -M 64<br>
                        &nbsp;/usr/local/opensips/sbin/opensips -P
                        /var/run/opensips.pid -f
                        /etc/opensips/opensips.cfg -m 1024 -M 64<br>
                        &nbsp;/usr/local/opensips/sbin/opensips -P
                        /var/run/opensips.pid -f
                        /etc/opensips/opensips.cfg -m 1024 -M 64<br>
                        <br>
                        <br>
                      </div>
                      Just to remember i have 8 GB Ram for this server<br>
                      <br>
                      Feb 28 15:35:08 sipproxy1
                      /usr/local/opensips/sbin/opensips[27539]: Grupo de
                      gateways: 1<br>
                      Feb 28 15:35:08 sipproxy1
                      /usr/local/opensips/sbin/opensips[27539]:
                      ERROR:dialog:build_new_dlg: no more shm mem (300)<br>
                      Feb 28 15:35:08 sipproxy1
                      /usr/local/opensips/sbin/opensips[27539]:
                      ERROR:dialog:dlg_create_dialog: failed to create
                      new dialog<br>
                      Feb 28 15:35:08 sipproxy1
                      /usr/local/opensips/sbin/opensips[27539]:
                      ERROR:load_balancer:do_load_balance: failed to
                      create dialog<br>
                      <br>
                      <br>
                      <br>
                    </div>
                    The amount of calls&nbsp; was like 400 calls when i got
                    the message.<br>
                    <br>
                  </div>
                  As i say before, im running this host on a kvm server,
                  this is the first server that i put in prodcution
                  using virtualization, i have real servers running
                  without problem , the server run fine from yeasterday
                  to now<br>
                  <br>
                </div>
                Below the link to the script,&nbsp; i double check the script
                and dont see anything that can generate this error<br>
                <br>
                <a moz-do-not-send="true"
                  href="http://204.16.1.50/opensips.cfg" target="_blank">http://204.16.1.50/opensips.cfg</a><br>
                <br>
              </div>
              I will appreciate your help.<br>
              <br>
              Thanks<br>
              <div>
                <div>
                  <div>
                    <div>
                      <div><br>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <div class="gmail_extra"><br>
              <br>
              <div class="gmail_quote">2014-02-27 12:52 GMT-05:00 Mike
                Tesliuk <span dir="ltr">&lt;<a moz-do-not-send="true"
                    href="mailto:mike@ultra.net.br" target="_blank">mike@ultra.net.br</a>&gt;</span>:
                <div>
                  <div class="h5"><br>
                    <blockquote class="gmail_quote" style="margin:0 0 0
                      .8ex;border-left:1px #ccc solid;padding-left:1ex">Ok,
                      i will try that, sorry my mistake with the subject
                      so e thanks for<br>
                      your help, on my "man opensips" i didint see thes
                      -M option (just -m)<br>
                      <br>
                      2014-02-27 12:45 GMT-05:00 Liviu Chircu &lt;<a
                        moz-do-not-send="true"
                        href="mailto:liviu@opensips.org" target="_blank">liviu@opensips.org</a>&gt;:<br>
                      <div>
                        <div>&gt; It doesn't matter how many memory you
                          have. OpenSIPS only uses what it is<br>
                          &gt; configured to start with.<br>
                          &gt;<br>
                          &gt; Restart your OpenSIPS daemon using the
                          "-m 512 -M 32" options (512MB shared<br>
                          &gt; between children, 32MB private for each
                          one). It should be more than enough<br>
                          &gt; to handle 600 concurrent calls.<br>
                          &gt;<br>
                          &gt;<br>
                          &gt; Best regards,<br>
                          &gt;<br>
                          &gt; Liviu Chircu<br>
                          &gt; OpenSIPS Developer<br>
                          &gt; <a moz-do-not-send="true"
                            href="http://www.opensips-solutions.com"
                            target="_blank">http://www.opensips-solutions.com</a><br>
                          &gt;<br>
                          &gt; On 02/27/2014 07:40 PM, Mike Tesliuk
                          wrote:<br>
                          &gt;&gt;<br>
                          &gt;&gt; Hello Liviu,<br>
                          &gt;&gt;<br>
                          &gt;&gt; Thanks for you help.<br>
                          &gt;&gt;<br>
                          &gt;&gt; Im receiving messages of &nbsp;no memmory<br>
                          &gt;&gt;<br>
                          &gt;&gt; : WARNING:core:fm_malloc: Not enough
                          free memory, will atempt<br>
                          &gt;&gt; defragmenation<br>
                          &gt;&gt; Feb 25 15:13:02 sipproxy1
                          /usr/local/opensips/sbin/opensips[8125]:<br>
                          &gt;&gt; ERROR:dialog:dlg_add_leg_info: Failed
                          to resize legs array<br>
                          &gt;&gt; Feb 25 15:13:02 sipproxy1
                          /usr/local/opensips/sbin/opensips[8125]:<br>
                          &gt;&gt; ERROR:dialog:init_leg_info:
                          dlg_add_leg_info failed<br>
                          &gt;&gt; Feb 25 15:13:02 sipproxy1
                          /usr/local/opensips/sbin/opensips[8125]:<br>
                          &gt;&gt; ERROR:dialog:dlg_create_dialog: could
                          not add further info to the<br>
                          &gt;&gt; dialog<br>
                          &gt;&gt; Feb 25 15:13:02 sipproxy1
                          /usr/local/opensips/sbin/opensips[8125]:<br>
                          &gt;&gt; ERROR:load_balancer:do_load_balance:
                          failed to create dialog<br>
                          &gt;&gt;<br>
                          &gt;&gt;<br>
                          &gt;&gt; The server is virtual host (kvm) with
                          8 GB dedicated memory , i got<br>
                          &gt;&gt; something like 600 simultaneos calls<br>
                          &gt;&gt;<br>
                          &gt;&gt;<br>
                          &gt;&gt; The memory status error that you ask
                          is on the link below<br>
                          &gt;&gt;<br>
                          &gt;&gt;<br>
                          &gt;&gt; <a moz-do-not-send="true"
                            href="http://204.16.1.50/memorystatus-shm.txt"
                            target="_blank">http://204.16.1.50/memorystatus-shm.txt</a><br>
                          &gt;&gt;<br>
                          &gt;&gt;<br>
                          &gt;&gt; and i get some ERROR messages on the
                          next link<br>
                          &gt;&gt;<br>
                          &gt;&gt; <a moz-do-not-send="true"
                            href="http://204.16.1.50/process-errors.txt"
                            target="_blank">http://204.16.1.50/process-errors.txt</a><br>
                          &gt;&gt;<br>
                          &gt;&gt;
                          _______________________________________________<br>
                          &gt;&gt; Devel mailing list<br>
                          &gt;&gt; <a moz-do-not-send="true"
                            href="mailto:Devel@lists.opensips.org"
                            target="_blank">Devel@lists.opensips.org</a><br>
                          &gt;&gt; <a moz-do-not-send="true"
                            href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel"
                            target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a><br>
                          &gt;<br>
                          &gt;<br>
                          &gt;<br>
                          &gt;
                          _______________________________________________<br>
                          &gt; Devel mailing list<br>
                          &gt; <a moz-do-not-send="true"
                            href="mailto:Devel@lists.opensips.org"
                            target="_blank">Devel@lists.opensips.org</a><br>
                          &gt; <a moz-do-not-send="true"
                            href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel"
                            target="_blank">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a><br>
                        </div>
                      </div>
                    </blockquote>
                  </div>
                </div>
              </div>
              <br>
            </div>
          </blockquote>
        </div>
        <br>
      </div>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_______________________________________________
Devel mailing list
<a class="moz-txt-link-abbreviated" href="mailto:Devel@lists.opensips.org">Devel@lists.opensips.org</a>
<a class="moz-txt-link-freetext" href="http://lists.opensips.org/cgi-bin/mailman/listinfo/devel">http://lists.opensips.org/cgi-bin/mailman/listinfo/devel</a>
</pre>
    </blockquote>
    <br>
  </body>
</html>