<html>
  <head>
    <meta content="text/html; charset=UTF-8" http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    We had some issues using pcall functions like io.popen when trying
    to execute external commands, that block mod_lua, i end up replacing
    that with os.execute.<br>
    <br>
    Recently i also had some issue with cpu hitting 100%,for what i
    could compile from debugging was something related with malloc
    calls. after compiling fs with tcmalloc the issue disappear, you
    could try this approach as well.<br>
    <br>
    You can check jira: <a class="moz-txt-link-freetext" href="https://freeswitch.org/jira/browse/FS-9957">https://freeswitch.org/jira/browse/FS-9957</a> and 
    also in the malling: "CPU sys load issue"  for more info.<br>
    <br>
    <br>
    Regards,<br>
    António<br>
    <br>
    <div class="moz-cite-prefix">On 03/22/2017 09:52 AM, Shaun Stokes
      wrote:<br>
    </div>
    <blockquote
cite="mid:6FD2F8B5BB72834E9939AEDF9FB802A901E864A50F@mbx-01.sysconfig.co.uk"
      type="cite">
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
      <style>
<!--
@font-face
        {font-family:"Cambria Math"}
@font-face
        {font-family:Calibri}
@font-face
        {font-family:Consolas}
@font-face
        {font-family:"Segoe UI Symbol"}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:12.0pt;
        font-family:"Times New Roman",serif}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
pre
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:10.0pt;
        font-family:"Courier New"}
span.HTMLPreformattedChar
        {font-family:Consolas}
p.msonormal0, li.msonormal0, div.msonormal0
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif}
span.gmailmsg
        {}
span.m3623806029287245330hoenzb
        {}
span.EmailStyle22
        {font-family:"Calibri",sans-serif;
        color:windowtext}
span.EmailStyle23
        {font-family:"Calibri",sans-serif;
        color:#1F497D}
.MsoChpDefault
        {font-size:10.0pt}
@page WordSection1
        {margin:70.85pt 70.85pt 70.85pt 70.85pt}
div.WordSection1
        {}
-->
</style>
      <div class="WordSection1">
        <p class="MsoNormal"><span style="font-size:11.0pt;
            font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">Are
            you using ‘if (session:ready()) then’ in your scripts before
            you execute?</span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;
            font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D"> </span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;
            font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D">Are
            you using virtual or physical hardware and what spec?</span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;
            font-family:&quot;Calibri&quot;,sans-serif; color:#1F497D"> </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="font-size:11.0pt;
                  font-family:&quot;Calibri&quot;,sans-serif"
                  lang="EN-US">From:</span></b><span
                style="font-size:11.0pt;
                font-family:&quot;Calibri&quot;,sans-serif" lang="EN-US">
                <a class="moz-txt-link-abbreviated" href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>
                [<a class="moz-txt-link-freetext" href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]
                <b>On Behalf Of </b>Grant Bagdasarian<br>
                <b>Sent:</b> 22 March 2017 07:31<br>
                <b>To:</b> FreeSWITCH Users Help
                <a class="moz-txt-link-rfc2396E" href="mailto:freeswitch-users@lists.freeswitch.org">&lt;freeswitch-users@lists.freeswitch.org&gt;</a><br>
                <b>Subject:</b> Re: [Freeswitch-users] 100% CPU usage</span></p>
          </div>
        </div>
        <p class="MsoNormal"> </p>
        <p class="MsoNormal"><span style="font-size:11.0pt;
            font-family:&quot;Calibri&quot;,sans-serif" lang="EN-US">Anthony,
            we triple checked the script and its dependencies. There are
            no loops at all in the script. The imported scripts are also
            written by us and they too do not contain any loops. </span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;
            font-family:&quot;Calibri&quot;,sans-serif" lang="EN-US">It’s
            just basic call handling with some playback and
            play_and_get_digits calls, and some pcall calls to query a
            database.</span></p>
        <p class="MsoNormal"><span style="font-size:11.0pt;
            font-family:&quot;Calibri&quot;,sans-serif" lang="EN-US"> </span></p>
        <p class="MsoNormal"><b><span style="font-size:11.0pt;
              font-family:&quot;Calibri&quot;,sans-serif" lang="EN-US">From:</span></b><span
            style="font-size:11.0pt;
            font-family:&quot;Calibri&quot;,sans-serif" lang="EN-US">
            <a moz-do-not-send="true"
              href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a>
            [<a moz-do-not-send="true"
              href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]
            <b>On Behalf Of </b>Anthony Minessale<br>
            <b>Sent:</b> dinsdag 21 maart 2017 16:02<br>
            <b>To:</b> FreeSWITCH Users Help &lt;<a
              moz-do-not-send="true"
              href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>&gt;<br>
            <b>Subject:</b> Re: [Freeswitch-users] 100% CPU usage</span></p>
        <p class="MsoNormal"><span lang="EN-US"> </span></p>
        <div>
          <p class="MsoNormal"><span lang="EN-US">I already told you why
              a week ago.  Your script most likely has an endless loop
              in it that does not check the condition session:ready() </span></p>
        </div>
        <div>
          <p class="MsoNormal"><span lang="EN-US"> </span></p>
        </div>
        <div>
          <p class="MsoNormal"><span lang="EN-US">However, Feel free to
              contact <a moz-do-not-send="true"
                href="mailto:consulting@freeswitch.org">
                consulting@freeswitch.org</a> and we can formally
              diagnose it for a fee.</span></p>
        </div>
        <div>
          <p class="MsoNormal"><span lang="EN-US"> </span></p>
        </div>
        <div>
          <p class="MsoNormal"><span lang="EN-US"> </span></p>
        </div>
        <div>
          <p class="MsoNormal"><span lang="EN-US"> </span></p>
        </div>
        <div>
          <p class="MsoNormal"><span lang="EN-US"> </span></p>
          <div>
            <div>
              <p class="MsoNormal"><span lang="EN-US">On Tue, Mar 21,
                  2017 at 6:42 AM Grant Bagdasarian &lt;<a
                    moz-do-not-send="true" href="mailto:gb@cm.nl">gb@cm.nl</a>&gt;
                  wrote:</span></p>
            </div>
            <blockquote style="border:none; border-left:solid #CCCCCC
              1.0pt; padding:0cm 0cm 0cm 6.0pt; margin-left:4.8pt;
              margin-top:5.0pt; margin-right:0cm; margin-bottom:5.0pt">
              <div>
                <div>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US">Attached are the logs for:</span></span><span
                      lang="EN-US"></span></p>
                </div>
              </div>
              <div>
                <div>
                  <pre><span lang="EN-US">#check thread usage:</span></pre>
                  <pre><span lang="EN-US">top -p $(cat /var/run/freeswitch/freeswitch.pid) -H -b -n 1</span></pre>
                  <pre><span lang="EN-US"> </span></pre>
                  <pre><span lang="EN-US"> </span></pre>
                  <pre><span lang="EN-US">#memory mapping:</span></pre>
                  <pre><span lang="EN-US">cat /proc/$(cat /var/run/freeswitch/freeswitch.pid)/maps</span></pre>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US"> </span></span><span lang="EN-US"></span></p>
                </div>
              </div>
              <div>
                <div>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US">We’re unable to run gcore since
                        freeswitch hogs all available cpu’s at 100%.
                      </span></span><span lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US">I tried changing the nice settings
                        real-time but that didn’t work either.</span></span><span
                      lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US"> </span></span><span lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US">At one point we had a huge spike in
                        inbound traffic towards our freeswitch (valid
                        traffic).</span></span><span lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US">The traffic is handled by a lua
                        application.</span></span><span lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US">What we saw was calls hanging in
                        freeswitch while they’ve already been physically
                        disconnected.
                      </span></span><span lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US">After the huge spike freeswitch
                        behaved normally for a couple of minutes and
                        then suddenly started eating all the available
                        cpu cores at 100%. </span></span><span
                      lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US"> </span></span><span lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US">We have some db queries which are
                        fired in the lua application, so these may cause
                        the application to hang, but we haven’t
                        reproduced it yet. </span></span><span
                      lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US"> </span></span><span lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US">I’ll setup a test lab with the same
                        configuration and fire sipp at it to see if I
                        can reproduce the issue.
                      </span></span><span lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US">However, I probably won’t be able
                        to run gcore for debugging. Any other
                        suggestions?</span></span><span lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US"> </span></span><span lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US">Also we saw a lot of open udp ports
                        and some had a huge read buffer size which did
                        not decrease.
                      </span></span><span lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US"> </span></span><span lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span
                      style="font-size:11.0pt;
                      font-family:&quot;Calibri&quot;,sans-serif"
                      lang="EN-US"><img moz-do-not-send="true"
                        id="m_3623806029287245330Picture_x0020_2"
                        src="cid:image001.png@01D2A238.14965330"
                        border="0" height="436" width="924"></span><span
                      lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US"> </span></span><span lang="EN-US"></span></p>
                  <div>
                    <div style="border:none; border-top:solid #E1E1E1
                      1.0pt; padding:3.0pt 0cm 0cm 0cm">
                      <p class="MsoNormal" style=""><span
                          class="gmailmsg"><b><span
                              style="font-size:11.0pt;
                              font-family:&quot;Calibri&quot;,sans-serif"
                              lang="EN-US">From:</span></b></span><span
                          class="gmailmsg"><span
                            style="font-size:11.0pt;
                            font-family:&quot;Calibri&quot;,sans-serif"
                            lang="EN-US">
                            <a moz-do-not-send="true"
                              href="mailto:freeswitch-users-bounces@lists.freeswitch.org"
                              target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>
                            [mailto:<a moz-do-not-send="true"
                              href="mailto:freeswitch-users-bounces@lists.freeswitch.org"
                              target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>]
                            <b>On Behalf Of </b>Grant Bagdasarian</span></span><span
                          style="font-size:11.0pt;
                          font-family:&quot;Calibri&quot;,sans-serif"
                          lang="EN-US"><br>
                          <span class="gmailmsg"><b>Sent:</b> maandag 13
                            maart 2017 09:04</span></span><span
                          lang="EN-US"></span></p>
                    </div>
                  </div>
                </div>
              </div>
              <div>
                <div>
                  <div>
                    <div style="border:none; border-top:solid #E1E1E1
                      1.0pt; padding:3.0pt 0cm 0cm 0cm">
                      <p class="MsoNormal" style=""><span
                          style="font-size:11.0pt;
                          font-family:&quot;Calibri&quot;,sans-serif"
                          lang="EN-US"><br>
                          <span class="gmailmsg"><b>To:</b> FreeSWITCH
                            Users Help &lt;<a moz-do-not-send="true"
                              href="mailto:freeswitch-users@lists.freeswitch.org"
                              target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;</span><br>
                          <span class="gmailmsg"><b>Subject:</b> Re:
                            [Freeswitch-users] 100% CPU usage</span></span><span
                          lang="EN-US"></span></p>
                    </div>
                  </div>
                </div>
              </div>
              <div>
                <div>
                  <p class="MsoNormal" style=""><span lang="EN-US"> </span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="NL">Hi Antony and Antonio,</span></span><span
                      lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="NL"> </span></span><span lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US">Thank you for the tips.</span></span><span
                      lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US">We haven’t had freeswitch going
                        berserk anymore (not sure as to why it did
                        perform without issue over the weekend), but
                        will continue to monitor it and run the commands
                        to trace the issue.</span></span><span
                      lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US"> </span></span><span lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US">Regards,</span></span><span
                      lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US"> </span></span><span lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US">Grant</span></span><span
                      lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><span
                        style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US"> </span></span><span lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span class="gmailmsg"><b><span
                          style="font-size:11.0pt;
                          font-family:&quot;Calibri&quot;,sans-serif"
                          lang="EN-US">From:</span></b></span><span
                      class="gmailmsg"><span style="font-size:11.0pt;
                        font-family:&quot;Calibri&quot;,sans-serif"
                        lang="EN-US">
                        <a moz-do-not-send="true"
                          href="mailto:freeswitch-users-bounces@lists.freeswitch.org"
                          target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a>
                        [<a moz-do-not-send="true"
                          href="mailto:freeswitch-users-bounces@lists.freeswitch.org"
                          target="_blank">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]
                        <b>On Behalf Of </b>Anthony Minessale</span></span><span
                      style="font-size:11.0pt;
                      font-family:&quot;Calibri&quot;,sans-serif"
                      lang="EN-US"><br>
                      <span class="gmailmsg"><b>Sent:</b> zaterdag 11
                        maart 2017 00:07</span><br>
                      <span class="gmailmsg"><b>To:</b> FreeSWITCH Users
                        Help &lt;<a moz-do-not-send="true"
                          href="mailto:freeswitch-users@lists.freeswitch.org"
                          target="_blank">freeswitch-users@lists.freeswitch.org</a>&gt;</span><br>
                      <span class="gmailmsg"><b>Subject:</b> Re:
                        [Freeswitch-users] 100% CPU usage</span></span><span
                      lang="EN-US"></span></p>
                  <p class="MsoNormal" style=""><span lang="EN-US"> </span></p>
                  <div>
                    <p class="MsoNormal" style=""><span lang="EN-US">Make
                        sure you lua script has all while loops
                        including session:ready() as a condition to
                        continue.  Its a common mistake that leads to
                        loops spinning out of control on hungup
                        channels.</span></p>
                    <div>
                      <p class="MsoNormal" style=""><span lang="EN-US"> </span></p>
                    </div>
                  </div>
                  <div>
                    <p class="MsoNormal" style=""><span lang="EN-US"> </span></p>
                    <div>
                      <p class="MsoNormal" style=""><span lang="EN-US">On
                          Fri, Mar 10, 2017 at 6:11 AM, Antonio Silva
                          &lt;<a moz-do-not-send="true"
                            href="mailto:asilva@wirelessmundi.com"
                            target="_blank">asilva@wirelessmundi.com</a>&gt;
                          wrote:</span></p>
                      <blockquote style="border:none; border-left:solid
                        #CCCCCC 1.0pt; padding:0cm 0cm 0cm 6.0pt;
                        margin-left:4.8pt; margin-top:5.0pt;
                        margin-right:0cm; margin-bottom:5.0pt">
                        <div>
                          <p class="MsoNormal"
                            style="margin-bottom:12.0pt"><span
                              lang="EN-US">Hi,<br>
                              <br>
                              You can use the following commands:</span></p>
                          <pre><span lang="EN-US">#get a core:</span></pre>
                          <pre><span lang="EN-US">gcore -o /home/gcore-$(date +%s) $(cat /var/run/freeswitch/freeswitch.pid)</span></pre>
                          <pre><span lang="EN-US"> </span></pre>
                          <pre><span lang="EN-US"> </span></pre>
                          <pre><span lang="EN-US">#check thread usage:</span></pre>
                          <pre><span lang="EN-US">top -p $(cat /var/run/freeswitch/freeswitch.pid) -H -b -n 1</span></pre>
                          <pre><span lang="EN-US"> </span></pre>
                          <pre><span lang="EN-US"> </span></pre>
                          <pre><span lang="EN-US">#memory mapping:</span></pre>
                          <pre><span lang="EN-US">cat /proc/$(cat /var/run/freeswitch/freeswitch.pid)/maps</span></pre>
                          <p class="MsoNormal"
                            style="margin-bottom:12.0pt"><span
                              lang="EN-US"><br>
                              <br>
                              you can get some info from fs:</span></p>
                          <pre><span lang="EN-US">fs_cli -x "sofia global siptrace on"</span></pre>
                          <pre><span lang="EN-US">fs_cli -x "fsctl debug_level 10"</span></pre>
                          <pre><span lang="EN-US">fs_cli -x "sofia loglevel all 9"</span></pre>
                          <pre><span lang="EN-US">fs_cli -x "fsctl debug_sql "</span></pre>
                          <pre><span lang="EN-US">fs_cli -x "sofia global debug presence"</span></pre>
                          <p class="MsoNormal" style=""><span
                              lang="EN-US"><br>
                              <br>
                              Put everything into a jira so we can take
                              a look.<br>
                              <br>
                              <br>
                              Regards,<br>
                              António</span></p>
                          <div>
                            <div>
                              <p class="MsoNormal"
                                style="margin-bottom:12.0pt"><span
                                  lang="EN-US"> </span></p>
                              <div>
                                <p class="MsoNormal" style=""><span
                                    lang="EN-US">On 03/10/2017 11:08 AM,
                                    Grant Bagdasarian wrote:</span></p>
                              </div>
                            </div>
                          </div>
                          <blockquote style="margin-top:5.0pt;
                            margin-bottom:5.0pt">
                            <div>
                              <div>
                                <div>
                                  <p class="MsoNormal" style=""><span
                                      class="gmailmsg"><span lang="NL">Hi,</span></span><span
                                      lang="EN-US"></span></p>
                                  <p class="MsoNormal" style=""><span
                                      class="gmailmsg"><span lang="NL"> </span></span><span
                                      lang="EN-US"></span></p>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US">We’re currently
                                      experiencing a weird issue with
                                      one of our freeswitch servers
                                      where the CPU just goes berserk
                                      and stays at 100%.
                                    </span></p>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US">There are no active
                                      calls at that moment, but FS is
                                      still using 100% CPU.
                                    </span></p>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US"> </span></p>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US">I was unable to get a
                                      debug using gdb, since freeswitch
                                      does not crash.
                                    </span></p>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US"> </span></p>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US">We had this issue on
                                      1.6.13 and then I upgraded to
                                      1.6.15 this morning, but the
                                      problem still persists.
                                    </span></p>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US">There is currently
                                      only one active application
                                      running on this box which is using
                                      LUA. Maybe that is causing the
                                      issue?</span></p>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US">We checked the code
                                      but there are no weird loops etc.
                                      Perhaps we are missing something?</span></p>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US"> </span></p>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US">Any ideas how to
                                      trace this?</span></p>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US"> </span></p>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US">Regards,</span></p>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US"> </span></p>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US">Grant</span></p>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US"> </span></p>
                                </div>
                                <p class="MsoNormal"
                                  style="margin-bottom:12.0pt"><span
                                    lang="EN-US"> </span></p>
                              </div>
                            </div>
                            <pre><span lang="EN-US">_________________________________________________________________________</span></pre>
                            <pre><span lang="EN-US">Professional FreeSWITCH Consulting Services: </span></pre>
                            <pre><span lang="EN-US"><a moz-do-not-send="true" href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></span></pre>
                            <pre><span lang="EN-US"><a moz-do-not-send="true" href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a></span></pre>
                            <pre><span lang="EN-US"> </span></pre>
                            <pre><span lang="EN-US">Official FreeSWITCH Sites</span></pre>
                            <pre><span lang="EN-US"><a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></pre>
                            <pre><span lang="EN-US"><a moz-do-not-send="true" href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a></span></pre>
                            <pre><span lang="EN-US"><a moz-do-not-send="true" href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a></span></pre>
                            <pre><span lang="EN-US"> </span></pre>
                            <pre><span lang="EN-US">FreeSWITCH-users mailing list</span></pre>
                            <pre><span lang="EN-US"><a moz-do-not-send="true" href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span></pre>
                            <pre><span lang="EN-US"><a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span></pre>
                            <pre><span lang="EN-US">UNSUBSCRIBE:<a moz-do-not-send="true" href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span></pre>
                            <pre><span lang="EN-US"><a moz-do-not-send="true" href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></pre>
                          </blockquote>
                          <p class="MsoNormal"
                            style="margin-bottom:12.0pt"><span
                              class="gmailmsg"><span
                                style="color:#888888" lang="EN-US"> </span></span><span
                              lang="EN-US"></span></p>
                          <pre><span class="gmailmsg"><span style="color:#888888" lang="EN-US">-- </span></span><span lang="EN-US"></span></pre>
                          <pre><span class="gmailmsg"><span style="color:#888888" lang="EN-US"> </span></span><span lang="EN-US"></span></pre>
                          <pre><span class="gmailmsg"><span style="color:#888888" lang="EN-US">Saludos / Regards / Cumprimentos,</span></span><span lang="EN-US"></span></pre>
                          <pre><span class="gmailmsg"><span style="color:#888888" lang="EN-US">António silva</span></span><span lang="EN-US"></span></pre>
                        </div>
                        <p class="MsoNormal" style=""><span lang="EN-US"><br>
_________________________________________________________________________<br>
                            Professional FreeSWITCH Consulting Services:<br>
                            <a moz-do-not-send="true"
                              href="mailto:consulting@freeswitch.org"
                              target="_blank">consulting@freeswitch.org</a><br>
                            <a moz-do-not-send="true"
                              href="http://www.freeswitchsolutions.com"
                              target="_blank">http://www.freeswitchsolutions.com</a><br>
                            <br>
                            Official FreeSWITCH Sites<br>
                            <a moz-do-not-send="true"
                              href="http://www.freeswitch.org"
                              target="_blank">http://www.freeswitch.org</a><br>
                            <a moz-do-not-send="true"
                              href="http://confluence.freeswitch.org"
                              target="_blank">http://confluence.freeswitch.org</a><br>
                            <a moz-do-not-send="true"
                              href="http://www.cluecon.com"
                              target="_blank">http://www.cluecon.com</a><br>
                            <br>
                            FreeSWITCH-users mailing list<br>
                            <a moz-do-not-send="true"
                              href="mailto:FreeSWITCH-users@lists.freeswitch.org"
                              target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                            <a moz-do-not-send="true"
                              href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                              target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                            UNSUBSCRIBE:<a moz-do-not-send="true"
                              href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                              target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                            <a moz-do-not-send="true"
                              href="http://www.freeswitch.org"
                              target="_blank">http://www.freeswitch.org</a></span></p>
                      </blockquote>
                    </div>
                    <p class="MsoNormal" style=""><span lang="EN-US"><br>
                        <br clear="all">
                      </span></p>
                    <div>
                      <p class="MsoNormal" style=""><span lang="EN-US"> </span></p>
                    </div>
                    <p class="MsoNormal" style=""><span lang="EN-US">--
                      </span></p>
                    <div>
                      <div>
                        <div>
                          <div>
                            <div>
                              <div>
                                <p class="MsoNormal" style=""><span
                                    lang="EN-US">Anthony Minessale II  
                                        </span>
                                  <span class="gmailmsg"><span
                                      style="font-family:&quot;Segoe UI
                                      Symbol&quot;,sans-serif"
                                      lang="EN-US">♬</span></span><span
                                    lang="EN-US"> @anthmfs  </span><span
                                    class="gmailmsg"><span
                                      style="font-family:&quot;Segoe UI
                                      Symbol&quot;,sans-serif"
                                      lang="EN-US">♬</span></span><span
                                    lang="EN-US"> @FreeSWITCH  </span><span
                                    class="gmailmsg"><span
                                      style="font-family:&quot;Segoe UI
                                      Symbol&quot;,sans-serif"
                                      lang="EN-US">♬</span></span><span
                                    lang="EN-US"></span></p>
                                <div>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US"> </span></p>
                                  <div>
                                    <p class="MsoNormal" style=""><span
                                        class="gmailmsg"><span
                                          style="font-family:&quot;Segoe
                                          UI Symbol&quot;,sans-serif"
                                          lang="EN-US">☞</span></span><span
                                        lang="EN-US">
                                        <a moz-do-not-send="true"
                                          href="http://freeswitch.org/"
                                          target="_blank">http://freeswitch.org/</a>
                                         </span><span class="gmailmsg"><span
                                          style="font-family:&quot;Segoe
                                          UI Symbol&quot;,sans-serif"
                                          lang="EN-US">☞</span></span><span
                                        lang="EN-US">
                                        <a moz-do-not-send="true"
                                          href="http://cluecon.com/"
                                          target="_blank">http://cluecon.com/</a>
                                         </span><span class="gmailmsg"><span
                                          style="font-family:&quot;Segoe
                                          UI Symbol&quot;,sans-serif"
                                          lang="EN-US">☞</span></span><span
                                        lang="EN-US">
                                        <a moz-do-not-send="true"
                                          href="http://twitter.com/FreeSWITCH"
                                          target="_blank">http://twitter.com/FreeSWITCH</a></span></p>
                                  </div>
                                  <div>
                                    <div>
                                      <p class="MsoNormal"
                                        style="margin-bottom:12.0pt"><span
                                          class="gmailmsg"><span
                                            style="font-family:&quot;Segoe
                                            UI Symbol&quot;,sans-serif"
                                            lang="EN-US">☞</span></span><span
                                          lang="EN-US">
                                          <a moz-do-not-send="true"
                                            href="http://irc.freenode.net"
                                            target="_blank">irc.freenode.net</a>
                                          #freeswitch </span><span
                                          class="gmailmsg"><span
                                            style="font-family:&quot;Segoe
                                            UI Symbol&quot;,sans-serif"
                                            lang="EN-US">☞</span></span><span
                                          lang="EN-US">
                                          <u><a moz-do-not-send="true"
                                              href="http://freeswitch.org/g+"
                                              target="_blank">http://freeswitch.org/g+</a></u></span></p>
                                    </div>
                                    <div>
                                      <p class="MsoNormal" style=""><span
                                          lang="EN-US">ClueCon Weekly
                                          Development Call </span></p>
                                    </div>
                                    <div>
                                      <p class="MsoNormal" style=""><span
                                          class="gmailmsg"><span
                                            style="font-family:&quot;Segoe
                                            UI Symbol&quot;,sans-serif"
                                            lang="EN-US">☎</span></span><span
                                          lang="EN-US"> <a
                                            moz-do-not-send="true"
                                            href="mailto:sip%3A888@conference.freeswitch.org"
                                            target="_blank">sip:888@conference.freeswitch.org</a>
                                           </span><span class="gmailmsg"><span
style="font-family:&quot;Segoe UI Symbol&quot;,sans-serif" lang="EN-US">☎</span></span><span
                                          lang="EN-US"> +19193869900 </span></p>
                                    </div>
                                    <div>
                                      <p class="MsoNormal" style=""><span
                                          lang="EN-US"> </span></p>
                                    </div>
                                  </div>
                                </div>
                                <div>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US"><a
                                        moz-do-not-send="true"
                                        href="https://www.youtube.com/watch?v=9XXgW34t40s"
                                        target="_blank"><span
                                          class="gmailmsg"><span
                                            style="font-size:9.5pt;
                                            color:#1155CC">https://www.youtube.com/watch?v=9XXgW34t40s</span></span></a></span></p>
                                </div>
                                <div>
                                  <p class="MsoNormal" style=""><span
                                      lang="EN-US"><a
                                        moz-do-not-send="true"
                                        href="https://www.youtube.com/watch?v=NLaDpGQuZDA"
                                        target="_blank">https://www.youtube.com/watch?v=NLaDpGQuZDA</a></span></p>
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
              <p class="MsoNormal"><span lang="EN-US">_________________________________________________________________________<br>
                  Professional FreeSWITCH Consulting Services:<br>
                  <a moz-do-not-send="true"
                    href="mailto:consulting@freeswitch.org"
                    target="_blank">consulting@freeswitch.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://www.freeswitchsolutions.com"
                    target="_blank">http://www.freeswitchsolutions.com</a><br>
                  <br>
                  Official FreeSWITCH Sites<br>
                  <a moz-do-not-send="true"
                    href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://confluence.freeswitch.org"
                    target="_blank">http://confluence.freeswitch.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
                  <br>
                  FreeSWITCH-users mailing list<br>
                  <a moz-do-not-send="true"
                    href="mailto:FreeSWITCH-users@lists.freeswitch.org"
                    target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
                  <a moz-do-not-send="true"
                    href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users"
                    target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
                  UNSUBSCRIBE:<a moz-do-not-send="true"
                    href="http://lists.freeswitch.org/mailman/options/freeswitch-users"
                    target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
                  <a moz-do-not-send="true"
                    href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></p>
            </blockquote>
          </div>
        </div>
        <div>
          <p class="MsoNormal"><span lang="EN-US">-- </span></p>
        </div>
        <div>
          <div>
            <div>
              <div>
                <div>
                  <div>
                    <p class="MsoNormal"><span lang="EN-US">Anthony
                        Minessale II       </span><span
                        style="font-family:&quot;Segoe UI
                        Symbol&quot;,sans-serif" lang="EN-US">♬</span><span
                        lang="EN-US"> @anthmfs  </span><span
                        style="font-family:&quot;Segoe UI
                        Symbol&quot;,sans-serif" lang="EN-US">♬</span><span
                        lang="EN-US"> @FreeSWITCH  </span><span
                        style="font-family:&quot;Segoe UI
                        Symbol&quot;,sans-serif" lang="EN-US">♬</span><span
                        lang="EN-US"></span></p>
                    <div>
                      <p class="MsoNormal"><span lang="EN-US"> </span></p>
                      <div>
                        <p class="MsoNormal"><span
                            style="font-family:&quot;Segoe UI
                            Symbol&quot;,sans-serif" lang="EN-US">☞</span><span
                            lang="EN-US">
                            <a moz-do-not-send="true"
                              href="http://freeswitch.org/"
                              target="_blank">http://freeswitch.org/</a>
                             </span><span style="font-family:&quot;Segoe
                            UI Symbol&quot;,sans-serif" lang="EN-US">☞</span><span
                            lang="EN-US">
                            <a moz-do-not-send="true"
                              href="http://cluecon.com/" target="_blank">http://cluecon.com/</a>
                             </span><span style="font-family:&quot;Segoe
                            UI Symbol&quot;,sans-serif" lang="EN-US">☞</span><span
                            lang="EN-US">
                            <a moz-do-not-send="true"
                              href="http://twitter.com/FreeSWITCH"
                              target="_blank">http://twitter.com/FreeSWITCH</a></span></p>
                      </div>
                      <div>
                        <div>
                          <p class="MsoNormal"
                            style="margin-bottom:12.0pt"><span
                              style="font-family:&quot;Segoe UI
                              Symbol&quot;,sans-serif" lang="EN-US">☞</span><span
                              lang="EN-US">
                              <a moz-do-not-send="true"
                                href="http://irc.freenode.net"
                                target="_blank">irc.freenode.net</a>
                              #freeswitch </span><span
                              style="font-family:&quot;Segoe UI
                              Symbol&quot;,sans-serif" lang="EN-US">☞</span><span
                              lang="EN-US">
                              <u><a moz-do-not-send="true"
                                  href="http://freeswitch.org/g+"
                                  target="_blank">http://freeswitch.org/g+</a></u></span></p>
                        </div>
                        <div>
                          <p class="MsoNormal"><span lang="EN-US">ClueCon
                              Weekly Development Call </span></p>
                        </div>
                        <div>
                          <p class="MsoNormal"><span
                              style="font-family:&quot;Segoe UI
                              Symbol&quot;,sans-serif" lang="EN-US">☎</span><span
                              lang="EN-US"> <a moz-do-not-send="true"
                                href="mailto:sip%3A888@conference.freeswitch.org"
                                target="_blank">sip:888@conference.freeswitch.org</a>
                               </span><span
                              style="font-family:&quot;Segoe UI
                              Symbol&quot;,sans-serif" lang="EN-US">☎</span><span
                              lang="EN-US"> +19193869900 </span></p>
                        </div>
                        <div>
                          <p class="MsoNormal"><span lang="EN-US"> </span></p>
                        </div>
                      </div>
                    </div>
                    <div>
                      <p class="MsoNormal"><span lang="EN-US"><a
                            moz-do-not-send="true"
                            href="https://www.youtube.com/watch?v=9XXgW34t40s"
                            target="_blank"><span
                              style="font-size:9.5pt; color:#1155CC">https://www.youtube.com/watch?v=9XXgW34t40s</span></a></span></p>
                    </div>
                    <div>
                      <p class="MsoNormal"><span lang="EN-US"><a
                            moz-do-not-send="true"
                            href="https://www.youtube.com/watch?v=NLaDpGQuZDA"
                            target="_blank">https://www.youtube.com/watch?v=NLaDpGQuZDA</a></span></p>
                    </div>
                  </div>
                </div>
              </div>
            </div>
          </div>
        </div>
        <p class="MsoNormal"><span lang="EN-US"><br>
______________________________________________________________________<br>
            This message has been checked for all known viruses by
            MessageLabs Virus Scanning Service.<br>
______________________________________________________________________</span></p>
      </div>
      <table>
        <tbody>
          <tr>
            <td><img moz-do-not-send="true"
src="http://www.itec-support.co.uk/wp-content/uploads/2016/07/email_logo.jpg"></td>
            <td valign="top">
              <div><a moz-do-not-send="true" style="font-family:calibri;
                  color:#1B3E94; font-size:11pt">Shaun Stokes -
                  Infrastructure Analyst</a></div>
              <div>
                <table>
                  <tbody>
                    <tr>
                      <td><br>
                      </td>
                      <td><br>
                      </td>
                    </tr>
                    <tr>
                      <td><a moz-do-not-send="true"
                          style="font-family:calibri; color:#1B3E94;
                          font-size:11pt">T : </a></td>
                      <td><a moz-do-not-send="true"
                          style="font-family:calibri; color:#1B3E94;
                          font-size:11pt">01453 700713</a></td>
                    </tr>
                    <tr>
                      <td><a moz-do-not-send="true"
                          style="font-family:calibri; color:#1B3E94;
                          font-size:11pt">E : </a></td>
                      <td><a moz-do-not-send="true"
                          style="font-family:calibri; color:#1B3E94;
                          font-size:11pt">shaun.stokes@itec-support.co.uk</a></td>
                    </tr>
                    <tr>
                      <td><a moz-do-not-send="true"
                          style="font-family:calibri; color:#1B3E94;
                          font-size:11pt">W : </a></td>
                      <td><a moz-do-not-send="true"
                          style="font-family:calibri; color:#1B3E94;
                          font-size:11pt">www.itec-support.co.uk</a></td>
                    </tr>
                  </tbody>
                </table>
              </div>
            </td>
          </tr>
        </tbody>
      </table>
      <div><a moz-do-not-send="true" style="font-family:calibri;
          color:#1B3E94; font-size:11pt">Registered Address :- ITEC
          Support, Suite 2 Prospect House, Bath Road, Stroud,
          Gloucestershire GL5 3QF</a>
        <br>
        <a moz-do-not-send="true" style="font-family:calibri;
          color:#1B3E94; font-size:11pt">Company No. 06908001</a>
      </div>
      <div><br>
        <a moz-do-not-send="true" style="font-family:calibri;
          color:Grey; font-size:11pt">CONFIDENTIALITY NOTICE</a>
        <br>
        <a moz-do-not-send="true" style="font-family:calibri;
          color:Grey; font-size:11pt">This communication and the
          information it contains are intended for the person or
          organisation to which it is addressed. Its contents are
          confidential and may be protected in law. Unauthorised use,
          copying or disclosure of any of it may be unlawful. If you are
          not the intended recipient, please contact us immediately.</a>
        <br>
        <a moz-do-not-send="true" style="font-family:calibri;
          color:Grey; font-size:11pt">The contents of any attachments in
          this e-mail may contain software viruses, which could damage
          your own computer system. While ITEC Support has taken every
          reasonable precaution to minimise this risk, we cannot accept
          liability for any damage which you sustain as a result of
          software viruses. You should carry out your own virus checking
          procedure before opening any attachment.</a>
      </div>
      <br clear="all">
______________________________________________________________________<br>
      This message has been checked for all known viruses by MessageLabs
      Virus Scanning Service.<br>
______________________________________________________________________<br>
      <br>
      <fieldset class="mimeAttachmentHeader"></fieldset>
      <br>
      <pre wrap="">_________________________________________________________________________
Professional FreeSWITCH Consulting Services: 
<a class="moz-txt-link-abbreviated" href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitchsolutions.com">http://www.freeswitchsolutions.com</a>

Official FreeSWITCH Sites
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://www.cluecon.com">http://www.cluecon.com</a>

FreeSWITCH-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a>
<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a>
UNSUBSCRIBE:<a class="moz-txt-link-freetext" href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a>
<a class="moz-txt-link-freetext" href="http://www.freeswitch.org">http://www.freeswitch.org</a></pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 

Saludos / Regards / Cumprimentos,
António silva</pre>
  </body>
</html>