[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openser-users
Subject:    Re: [SR-Users] Kamailio didn't start before increasing fork_delay
From:       Daniel-Constantin Mierla <miconda () gmail ! com>
Date:       2017-11-27 16:22:57
Message-ID: 6743bb8d-8744-e227-75d7-cdab3de35b9b () gmail ! com
[Download RAW message or body]

[Attachment #2 (multipart/alternative)]


Hello,


On 27.11.17 12:05, igor.potjevlesch@gmail.com wrote:
> 
> Hello Daniel,
> 
> 
> 
> Thank you. Do you know some OS counters (in /proc I guess?) I can look
> to in order to diagnose deeper?
> 
> Anyway, I'm already sure that the CAPS was higher than during another
> period of time.
> 
this is not about caps, but limits that prevent creating new tcp (mysql)
connections. Might be even mysql server limits (how many new connections
per second it accepts). I was not able to identify the limits, that's
why I added those delay parameters.

Cheers,
Daniel

> 
> 
> Regards,
> 
> 
> 
> Igor.
> 
> 
> 
> *De :*Daniel-Constantin Mierla [mailto:miconda@gmail.com]
> *Envoyé :* vendredi 24 novembre 2017 12:28
> *À :* igor.potjevlesch@gmail.com; 'Kamailio (SER) - Users Mailing
> List' <sr-users@lists.kamailio.org>
> *Objet :* Re: [SR-Users] Kamailio didn't start before increasing
> fork_delay
> 
> 
> 
> Hello,
> 
> it can be some other limits set in the system, I encountered also with
> centos/redhat and couldn't figure out myself (well, not a sysadmin
> here). It is the reason I added fork_delay and modinit_delay. You have
> to dig in the settings of the system and try to tune them.
> 
> Happening can be somehow random, a matter of how busy the system is at
> that moment.
> 
> Cheers,
> Daniel
> 
> 
> 
> On 24.11.17 11:30, igor.potjevlesch@gmail.com
> <mailto:igor.potjevlesch@gmail.com> wrote:
> 
> Hello Daniel,
> 
> 
> 
> Both Kamailio and MySQL are running under RHEL. But SELinux is
> deactivated.
> 
> 
> 
> Regards,
> 
> 
> 
> Igor.
> 
> 
> 
> *De :*Daniel-Constantin Mierla [mailto:miconda@gmail.com]
> *Envoyé :* jeudi 23 novembre 2017 12:56
> *À :* Kamailio (SER) - Users Mailing List
> <sr-users@lists.kamailio.org>
> <mailto:sr-users@lists.kamailio.org>; igor.potjevlesch@gmail.com
> <mailto:igor.potjevlesch@gmail.com>
> *Objet :* Re: [SR-Users] Kamailio didn't start before increasing
> fork_delay
> 
> 
> 
> Hello,
> 
> are you running on centos/redhat with selinux?
> 
> Cheers,
> Daniel
> 
> 
> 
> On 23.11.17 10:45, igor.potjevlesch@gmail.com
> <mailto:igor.potjevlesch@gmail.com> wrote:
> 
> Hello,
> 
> 
> 
> We suddenly had an issue on one Kamailio instance: we were not
> able to restart. Kamailio started to boot and fork and
> suddenly crashed.
> 
> The last logs reported a failure regarding the ability to
> connect to one MySQL instance.
> 
> 
> 
> I finally succeed  to restart after increasing:
> fork_delay=5000 to fork_delay=9000.
> 
> 
> 
> How this could happen suddenly? We already restarted Kamailio
> on this server.
> 
> 
> 
> Regards,
> 
> 
> 
> Igor.
> 
> 
> 
> 
> 
> _______________________________________________
> 
> Kamailio (SER) - Users Mailing List
> 
> sr-users@lists.kamailio.org <mailto:sr-users@lists.kamailio.org>
> 
> https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users
> 
> 
> 
> 
> -- 
> 
> Daniel-Constantin Mierla
> 
> www.twitter.com/miconda <http://www.twitter.com/miconda> -- \
> www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda> 
> Kamailio Advanced Training - www.asipto.com <http://www.asipto.com>
> 
> Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com \
> <http://www.kamailioworld.com> 
> 
> 
> -- 
> Daniel-Constantin Mierla
> www.twitter.com/miconda <http://www.twitter.com/miconda> -- \
> www.linkedin.com/in/miconda <http://www.linkedin.com/in/miconda> Kamailio Advanced \
> Training - www.asipto.com <http://www.asipto.com> Kamailio World Conference - May \
> 14-16, 2018 - www.kamailioworld.com <http://www.kamailioworld.com>

-- 
Daniel-Constantin Mierla
www.twitter.com/miconda -- www.linkedin.com/in/miconda
Kamailio Advanced Training - www.asipto.com
Kamailio World Conference - May 14-16, 2018 - www.kamailioworld.com


[Attachment #5 (text/html)]

<html>
  <head>
    <meta http-equiv="Content-Type" content="text/html;
      charset=windows-1252">
  </head>
  <body text="#000000" bgcolor="#FFFFFF">
    <p>Hello,<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 27.11.17 12:05,
      <a class="moz-txt-link-abbreviated" \
href="mailto:igor.potjevlesch@gmail.com">igor.potjevlesch@gmail.com</a> wrote:<br>  \
</div>  <blockquote type="cite"
      cite="mid:002c01d3676f$a25470b0$e6fd5210$@gmail.com">
      <meta http-equiv="Content-Type" content="text/html;
        charset=windows-1252">
      <meta name="Generator" content="Microsoft Word 15 (filtered
        medium)">
      <style><!--
/* Font Definitions */
@font-face
	{font-family:"Cambria Math";
	panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
	{font-family:Calibri;
	panose-1:2 15 5 2 2 2 4 3 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:11.0pt;
	font-family:"Calibri",sans-serif;
	color:black;
	mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
	{mso-style-priority:99;
	color:#0563C1;
	text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
	{mso-style-priority:99;
	color:#954F72;
	text-decoration:underline;}
pre
	{mso-style-priority:99;
	mso-style-link:"Préformaté HTML Car";
	margin:0cm;
	margin-bottom:.0001pt;
	font-size:10.0pt;
	font-family:"Courier New";
	color:black;}
p.msonormal0, li.msonormal0, div.msonormal0
	{mso-style-name:msonormal;
	mso-margin-top-alt:auto;
	margin-right:0cm;
	mso-margin-bottom-alt:auto;
	margin-left:0cm;
	font-size:11.0pt;
	font-family:"Calibri",sans-serif;
	color:black;}
span.PrformatHTMLCar
	{mso-style-name:"Préformaté HTML Car";
	mso-style-priority:99;
	mso-style-link:"Préformaté HTML";
	font-family:Consolas;
	color:black;
	mso-fareast-language:EN-US;}
span.EmailStyle21
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.EmailStyle22
	{mso-style-type:personal;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
span.EmailStyle23
	{mso-style-type:personal-reply;
	font-family:"Calibri",sans-serif;
	color:windowtext;}
.MsoChpDefault
	{mso-style-type:export-only;
	font-size:10.0pt;}
@page WordSection1
	{size:612.0pt 792.0pt;
	margin:70.85pt 70.85pt 70.85pt 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="color:windowtext">Hello
            Daniel,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext"><o:p> </o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext" lang="EN-GB">Thank
            you. Do you know some OS counters (in /proc I guess?) I can
            look to in order to diagnose deeper?<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext" lang="EN-GB">Anyway,
            I'm already sure that the CAPS was higher than during
            another period of time.</span></p>
      </div>
    </blockquote>
    this is not about caps, but limits that prevent creating new tcp
    (mysql) connections. Might be even mysql server limits (how many new
    connections per second it accepts). I was not able to identify the
    limits, that's why I added those delay parameters.<br>
    <br>
    Cheers,<br>
    Daniel<br>
    <br>
    <blockquote type="cite"
      cite="mid:002c01d3676f$a25470b0$e6fd5210$@gmail.com">
      <div class="WordSection1">
        <p class="MsoNormal"><span style="color:windowtext" \
                lang="EN-GB"><o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext" lang="EN-GB"><o:p> \
                </o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext" \
                lang="EN-GB">Regards,<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext" lang="EN-GB"><o:p> \
                </o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext" \
                lang="EN-GB">Igor.<o:p></o:p></span></p>
        <p class="MsoNormal"><span style="color:windowtext" lang="EN-GB"><o:p> \
</o:p></span></p>  <div>
          <div style="border:none;border-top:solid #E1E1E1
            1.0pt;padding:3.0pt 0cm 0cm 0cm">
            <p class="MsoNormal"><b><span
                  style="color:windowtext;mso-fareast-language:FR">De \
:</span></b><span  style="color:windowtext;mso-fareast-language:FR">
                Daniel-Constantin Mierla [<a class="moz-txt-link-freetext" \
href="mailto:miconda@gmail.com">mailto:miconda@gmail.com</a>] <br>  <b>Envoyé :</b> \
                vendredi 24 novembre 2017 12:28<br>
                <b>À :</b> <a class="moz-txt-link-abbreviated" \
href="mailto:igor.potjevlesch@gmail.com">igor.potjevlesch@gmail.com</a>; 'Kamailio \
                (SER) -
                Users Mailing List' <a class="moz-txt-link-rfc2396E" \
href="mailto:sr-users@lists.kamailio.org">&lt;sr-users@lists.kamailio.org&gt;</a><br> \
<b>Objet :</b> Re: [SR-Users] Kamailio didn't start  before increasing \
fork_delay<o:p></o:p></span></p>  </div>
        </div>
        <p class="MsoNormal"><o:p> </o:p></p>
        <p>Hello,<o:p></o:p></p>
        <p>it can be some other limits set in the system, I encountered
          also with centos/redhat and couldn't figure out myself (well,
          not a sysadmin here). It is the reason I added fork_delay and
          modinit_delay. You have to dig in the settings of the system
          and try to tune them.<o:p></o:p></p>
        <p>Happening can be somehow random, a matter of how busy the
          system is at that moment.<o:p></o:p></p>
        <p>Cheers,<br>
          Daniel<o:p></o:p></p>
        <p class="MsoNormal"><o:p> </o:p></p>
        <div>
          <p class="MsoNormal">On 24.11.17 11:30, <a
              href="mailto:igor.potjevlesch@gmail.com"
              moz-do-not-send="true">igor.potjevlesch@gmail.com</a>
            wrote:<o:p></o:p></p>
        </div>
        <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
          <p class="MsoNormal"><span style="color:windowtext">Hello
              Daniel,</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:windowtext"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:windowtext"
              lang="EN-GB">Both Kamailio and MySQL are running under
              RHEL. But SELinux is deactivated.</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:windowtext"
              lang="EN-GB"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:windowtext"
              lang="EN-GB">Regards,</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:windowtext"
              lang="EN-GB"> </span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:windowtext"
              lang="EN-GB">Igor.</span><o:p></o:p></p>
          <p class="MsoNormal"><span style="color:windowtext"
              lang="EN-GB"> </span><o:p></o:p></p>
          <div>
            <div style="border:none;border-top:solid #E1E1E1
              1.0pt;padding:3.0pt 0cm 0cm 0cm">
              <p class="MsoNormal"><b><span
                    style="color:windowtext;mso-fareast-language:FR">De \
:</span></b><span  style="color:windowtext;mso-fareast-language:FR">
                  Daniel-Constantin Mierla [<a
                    href="mailto:miconda@gmail.com"
                    moz-do-not-send="true">mailto:miconda@gmail.com</a>]
                  <br>
                  <b>Envoyé :</b> jeudi 23 novembre 2017 12:56<br>
                  <b>À :</b> Kamailio (SER) - Users Mailing List <a
                    href="mailto:sr-users@lists.kamailio.org"
                    moz-do-not-send="true">&lt;sr-users@lists.kamailio.org&gt;</a>;
                  <a href="mailto:igor.potjevlesch@gmail.com"
                    moz-do-not-send="true">igor.potjevlesch@gmail.com</a><br>
                  <b>Objet :</b> Re: [SR-Users] Kamailio didn't start
                  before increasing fork_delay</span><o:p></o:p></p>
            </div>
          </div>
          <p class="MsoNormal"> <o:p></o:p></p>
          <p>Hello,<o:p></o:p></p>
          <p>are you running on centos/redhat with selinux?<o:p></o:p></p>
          <p>Cheers,<br>
            Daniel<o:p></o:p></p>
          <p class="MsoNormal"> <o:p></o:p></p>
          <div>
            <p class="MsoNormal">On 23.11.17 10:45, <a
                href="mailto:igor.potjevlesch@gmail.com"
                moz-do-not-send="true">igor.potjevlesch@gmail.com</a>
              wrote:<o:p></o:p></p>
          </div>
          <blockquote style="margin-top:5.0pt;margin-bottom:5.0pt">
            <p class="MsoNormal">Hello,<o:p></o:p></p>
            <p class="MsoNormal"> <o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-GB">We suddenly had an
                issue on one Kamailio instance: we were not able to
                restart. Kamailio started to boot and fork and suddenly
                crashed.</span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-GB">The last logs
                reported a failure regarding the ability to connect to
                one MySQL instance.</span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-GB"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-GB">I finally succeed 
                to restart after increasing: fork_delay=5000 to
                fork_delay=9000.</span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-GB"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-GB">How this could
                happen suddenly? We already restarted Kamailio on this
                server.</span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-GB"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-GB">Regards,</span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-GB"> </span><o:p></o:p></p>
            <p class="MsoNormal"><span lang="EN-GB">Igor.</span><o:p></o:p></p>
            <p class="MsoNormal"><span style="mso-fareast-language:FR"><br>
                <br>
                <br>
                <br>
              </span><o:p></o:p></p>
            <pre>_______________________________________________<o:p></o:p></pre>
            <pre>Kamailio (SER) - Users Mailing List<o:p></o:p></pre>
            <pre><a href="mailto:sr-users@lists.kamailio.org" \
moz-do-not-send="true">sr-users@lists.kamailio.org</a><o:p></o:p></pre>  <pre><a \
href="https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users" \
moz-do-not-send="true">https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users</a><o:p></o:p></pre>
  </blockquote>
          <p class="MsoNormal"><span style="mso-fareast-language:FR"><br>
              <br>
              <br>
            </span><o:p></o:p></p>
          <pre>-- <o:p></o:p></pre>
          <pre>Daniel-Constantin Mierla<o:p></o:p></pre>
          <pre><a href="http://www.twitter.com/miconda" \
moz-do-not-send="true">www.twitter.com/miconda</a> -- <a \
href="http://www.linkedin.com/in/miconda" \
                moz-do-not-send="true">www.linkedin.com/in/miconda</a><o:p></o:p></pre>
                
          <pre>Kamailio Advanced Training - <a href="http://www.asipto.com" \
                moz-do-not-send="true">www.asipto.com</a><o:p></o:p></pre>
          <pre>Kamailio World Conference - May 14-16, 2018 - <a \
href="http://www.kamailioworld.com" \
moz-do-not-send="true">www.kamailioworld.com</a><o:p></o:p></pre>  </blockquote>
        <p class="MsoNormal"><span style="mso-fareast-language:FR"><br>
            <br>
            <o:p></o:p></span></p>
        <pre>-- <o:p></o:p></pre>
        <pre>Daniel-Constantin Mierla<o:p></o:p></pre>
        <pre><a href="http://www.twitter.com/miconda" \
moz-do-not-send="true">www.twitter.com/miconda</a> -- <a \
href="http://www.linkedin.com/in/miconda" \
                moz-do-not-send="true">www.linkedin.com/in/miconda</a><o:p></o:p></pre>
                
        <pre>Kamailio Advanced Training - <a href="http://www.asipto.com" \
                moz-do-not-send="true">www.asipto.com</a><o:p></o:p></pre>
        <pre>Kamailio World Conference - May 14-16, 2018 - <a \
href="http://www.kamailioworld.com" \
moz-do-not-send="true">www.kamailioworld.com</a><o:p></o:p></pre>  </div>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-abbreviated" \
href="http://www.twitter.com/miconda">www.twitter.com/miconda</a> -- <a \
class="moz-txt-link-abbreviated" \
href="http://www.linkedin.com/in/miconda">www.linkedin.com/in/miconda</a> Kamailio \
Advanced Training - <a class="moz-txt-link-abbreviated" \
href="http://www.asipto.com">www.asipto.com</a> Kamailio World Conference - May \
14-16, 2018 - <a class="moz-txt-link-abbreviated" \
href="http://www.kamailioworld.com">www.kamailioworld.com</a></pre>  </body>
</html>


[Attachment #6 (text/plain)]

_______________________________________________
Kamailio (SER) - Users Mailing List
sr-users@lists.kamailio.org
https://lists.kamailio.org/cgi-bin/mailman/listinfo/sr-users


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic