<html>
<head>
<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;
        color:black}
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";
        color:black}
span.HTMLPreformattedChar
        {font-family:Consolas;
        color:black}
p.msonormal0, li.msonormal0, div.msonormal0
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black}
p.msonormal00, li.msonormal00, div.msonormal00
        {margin-right:0cm;
        margin-left:0cm;
        font-size:12.0pt;
        font-family:"Times New Roman",serif;
        color:black}
p.msochpdefault, li.msochpdefault, div.msochpdefault
        {margin-right:0cm;
        margin-left:0cm;
        font-size:10.0pt;
        font-family:"Times New Roman",serif;
        color:black}
span.htmlpreformattedchar0
        {font-family:Consolas}
span.emailstyle22
        {font-family:"Calibri",sans-serif;
        color:windowtext}
span.emailstyle23
        {font-family:"Calibri",sans-serif;
        color:#1F497D}
span.gmailmsg
        {}
span.EmailStyle26
        {font-family:"Calibri",sans-serif;
        color:windowtext}
span.EmailStyle27
        {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>
</head>
<body bgcolor="white" lang="EN-GB" link="blue" vlink="purple">
<div class="WordSection1">
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">It’s probably a long shot, but if you’re able to replicate the problem it might be worth trying to replicate this on physical hardware. That way you eliminate
your virtual environment from the problem, there are a number of factors which exist in virtual environments depending on your hyper-visor which can contribute to performance issues of which we’ve experienced in the past.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">It would also be worth trying to isolate what the script is doing when the high CPU begins, if you’ve got a test environment you can use to replicate the issue
then you could try tweaking the script so you can eliminate certain actions from the list of causes, there’s maybe a FreeSWITCH module which is being called which triggers this.</span></p>
<p class="MsoNormal"><span style="font-size:11.0pt; font-family:"Calibri",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 lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:windowtext">From:</span></b><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:windowtext"> freeswitch-users-bounces@lists.freeswitch.org
[mailto:freeswitch-users-bounces@lists.freeswitch.org] <b>On Behalf Of </b>Grant Bagdasarian<br>
<b>Sent:</b> 22 March 2017 11:20<br>
<b>To:</b> FreeSWITCH Users Help <freeswitch-users@lists.freeswitch.org><br>
<b>Subject:</b> Re: [Freeswitch-users] 100% CPU usage</span></p>
</div>
</div>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:windowtext">@Shuan, yes we are using the session:ready() method before we execute.
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:windowtext">We are running all of our servers virtually and never had any issues up until now.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:windowtext">This same application ran on older versions of freeswitch without issues, even during and after high load.
</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:windowtext"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:windowtext">@Antonio, thanks for the tips! I’ll have a look and try some stuff.</span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:windowtext"> </span></p>
<div>
<div style="border:none; border-top:solid #E1E1E1 1.0pt; padding:3.0pt 0cm 0cm 0cm">
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:windowtext">From:</span></b><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:windowtext">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">mailto:freeswitch-users-bounces@lists.freeswitch.org</a>]
<b>On Behalf Of </b>Antonio Silva<br>
<b>Sent:</b> woensdag 22 maart 2017 10:09<br>
<b>To:</b> <a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a><br>
<b>Subject:</b> Re: [Freeswitch-users] 100% CPU usage</span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US">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 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</span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On 03/22/2017 09:52 AM, Shaun Stokes wrote:</span></p>
</div>
<blockquote style="margin-top:5.0pt; margin-bottom:5.0pt">
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Are you using ‘if (session:ready()) then’ in your scripts before you execute?</span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D">Are you using virtual or physical hardware and what spec?</span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif; color:#1F497D"> </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"><b><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [<a 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 href="mailto:freeswitch-users@lists.freeswitch.org">
<freeswitch-users@lists.freeswitch.org></a><br>
<b>Subject:</b> Re: [Freeswitch-users] 100% CPU usage</span><span lang="EN-US"></span></p>
</div>
</div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">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><span lang="EN-US"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">It’s just basic call handling with some playback and play_and_get_digits calls, and some pcall calls to query a database.</span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span><span lang="EN-US"></span></p>
<p class="MsoNormal"><b><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">From:</span></b><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org">freeswitch-users-bounces@lists.freeswitch.org</a> [<a 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 <<a href="mailto:freeswitch-users@lists.freeswitch.org">freeswitch-users@lists.freeswitch.org</a>><br>
<b>Subject:</b> Re: [Freeswitch-users] 100% CPU usage</span><span lang="EN-US"></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 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 <<a href="mailto:gb@cm.nl">gb@cm.nl</a>> 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"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">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"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></span><span lang="EN-US"></span></p>
</div>
</div>
<div>
<div>
<p class="MsoNormal"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">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"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">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"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">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"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">The traffic is handled by a lua application.</span></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">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"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">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"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">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"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">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"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">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"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">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"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"><img border="0" width="924" height="436" id="m_3623806029287245330Picture_x0020_2" src="cid:image001.png@01D2A238.14965330"></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </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"><span class="gmailmsg"><b><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">From:</span></b></span><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [mailto:<a 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 lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"><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"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"><br>
<span class="gmailmsg"><b>To:</b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>></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"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span class="gmailmsg"><span lang="NL" style="font-size:11.0pt; font-family:"Calibri",sans-serif">Hi Antony and Antonio,</span></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span class="gmailmsg"><span lang="NL" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">Thank you for the tips.</span></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">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"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">Regards,</span></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">Grant</span></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"> </span></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span class="gmailmsg"><b><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">From:</span></b></span><span class="gmailmsg"><span lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif">
<a href="mailto:freeswitch-users-bounces@lists.freeswitch.org" target="_blank">freeswitch-users-bounces@lists.freeswitch.org</a> [<a 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 lang="EN-US" style="font-size:11.0pt; font-family:"Calibri",sans-serif"><br>
<span class="gmailmsg"><b>Sent:</b> zaterdag 11 maart 2017 00:07</span><br>
<span class="gmailmsg"><b>To:</b> FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" target="_blank">freeswitch-users@lists.freeswitch.org</a>></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"><span lang="EN-US"> </span></p>
<div>
<p class="MsoNormal"><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"><span lang="EN-US"> </span></p>
</div>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<div>
<p class="MsoNormal"><span lang="EN-US">On Fri, Mar 10, 2017 at 6:11 AM, Antonio Silva <<a href="mailto:asilva@wirelessmundi.com" target="_blank">asilva@wirelessmundi.com</a>> 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"><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"><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"><span class="gmailmsg"><span lang="NL">Hi,</span></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><span class="gmailmsg"><span lang="NL"> </span></span><span lang="EN-US"></span></p>
<p class="MsoNormal"><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"><span lang="EN-US">There are no active calls at that moment, but FS is still using 100% CPU.
</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">I was unable to get a debug using gdb, since freeswitch does not crash.
</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><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"><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"><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"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Any ideas how to trace this?</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Regards,</span></p>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<p class="MsoNormal"><span lang="EN-US">Grant</span></p>
<p class="MsoNormal"><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 href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a></span></pre>
<pre><span lang="EN-US"><a 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 href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></pre>
<pre><span lang="EN-US"><a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a></span></pre>
<pre><span lang="EN-US"><a 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 href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a></span></pre>
<pre><span lang="EN-US"><a 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 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 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 lang="EN-US" style="color:#888888"> </span></span><span lang="EN-US"></span></p>
<pre><span class="gmailmsg"><span lang="EN-US" style="color:#888888">-- </span></span><span lang="EN-US"></span></pre>
<pre><span class="gmailmsg"><span lang="EN-US" style="color:#888888"> </span></span><span lang="EN-US"></span></pre>
<pre><span class="gmailmsg"><span lang="EN-US" style="color:#888888">Saludos / Regards / Cumprimentos,</span></span><span lang="EN-US"></span></pre>
<pre><span class="gmailmsg"><span lang="EN-US" style="color:#888888">António silva</span></span><span lang="EN-US"></span></pre>
</div>
<p class="MsoNormal"><span lang="EN-US"><br>
_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a></span></p>
</blockquote>
</div>
<p class="MsoNormal"><span lang="EN-US"><br>
<br clear="all">
</span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
</div>
<p class="MsoNormal"><span lang="EN-US">-- </span></p>
<div>
<div>
<div>
<div>
<div>
<div>
<p class="MsoNormal"><span lang="EN-US">Anthony Minessale II </span><span class="gmailmsg"><span lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">♬</span></span><span lang="EN-US"> @anthmfs </span><span class="gmailmsg"><span lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">♬</span></span><span lang="EN-US">
@FreeSWITCH </span><span class="gmailmsg"><span lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">♬</span></span><span lang="EN-US"></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<div>
<p class="MsoNormal"><span class="gmailmsg"><span lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">☞</span></span><span lang="EN-US">
<a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a> </span><span class="gmailmsg"><span lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">☞</span></span><span lang="EN-US">
<a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a> </span><span class="gmailmsg"><span lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">☞</span></span><span lang="EN-US">
<a 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 lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">☞</span></span><span lang="EN-US">
<a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch </span><span class="gmailmsg"><span lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">☞</span></span><span lang="EN-US">
<u><a 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 class="gmailmsg"><span lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">☎</span></span><span lang="EN-US"> <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a> </span><span class="gmailmsg"><span lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">☎</span></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 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"><span lang="EN-US"><a 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 href="mailto:consulting@freeswitch.org" target="_blank">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://confluence.freeswitch.org" target="_blank">http://confluence.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org" target="_blank">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a 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 lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">♬</span><span lang="EN-US"> @anthmfs </span><span lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">♬</span><span lang="EN-US">
@FreeSWITCH </span><span lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">♬</span><span lang="EN-US"></span></p>
<div>
<p class="MsoNormal"><span lang="EN-US"> </span></p>
<div>
<p class="MsoNormal"><span lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">☞</span><span lang="EN-US">
<a href="http://freeswitch.org/" target="_blank">http://freeswitch.org/</a> </span><span lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">☞</span><span lang="EN-US">
<a href="http://cluecon.com/" target="_blank">http://cluecon.com/</a> </span><span lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">☞</span><span lang="EN-US">
<a 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 lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">☞</span><span lang="EN-US">
<a href="http://irc.freenode.net" target="_blank">irc.freenode.net</a> #freeswitch </span><span lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">☞</span><span lang="EN-US">
<u><a 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 lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">☎</span><span lang="EN-US"> <a href="mailto:sip%3A888@conference.freeswitch.org" target="_blank">sip:888@conference.freeswitch.org</a> </span><span lang="EN-US" style="font-family:"Segoe UI Symbol",sans-serif">☎</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 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 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 class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><img border="0" id="_x0000_i1026" src="http://www.itec-support.co.uk/wp-content/uploads/2016/07/email_logo.jpg"></p>
</td>
<td valign="top" style="padding:.75pt .75pt .75pt .75pt">
<div>
<p class="MsoNormal">Shaun Stokes - Infrastructure Analyst</p>
</div>
<div>
<table class="MsoNormalTable" border="0" cellpadding="0">
<tbody>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
<td style="padding:.75pt .75pt .75pt .75pt"></td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">T : </p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">01453 700713</p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">E : </p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="mailto:shaun.stokes@itec-support.co.uk">shaun.stokes@itec-support.co.uk</a></p>
</td>
</tr>
<tr>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal">W : </p>
</td>
<td style="padding:.75pt .75pt .75pt .75pt">
<p class="MsoNormal"><a href="http://www.itec-support.co.uk">www.itec-support.co.uk</a></p>
</td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
</table>
<div>
<p class="MsoNormal"><span lang="EN-US">Registered Address :- ITEC Support, Suite 2 Prospect House, Bath Road, Stroud, Gloucestershire GL5 3QF
<br>
Company No. 06908001 </span></p>
</div>
<div>
<p class="MsoNormal"><span lang="EN-US"><br>
CONFIDENTIALITY NOTICE <br>
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. <br>
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.
</span></p>
</div>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"><br clear="all">
______________________________________________________________________<br>
This message has been checked for all known viruses by MessageLabs Virus Scanning Service.<br>
______________________________________________________________________<br>
<br>
<br>
</span></p>
<pre><span lang="EN-US">_________________________________________________________________________</span></pre>
<pre><span lang="EN-US">Professional FreeSWITCH Consulting Services: </span></pre>
<pre><span lang="EN-US"><a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a></span></pre>
<pre><span lang="EN-US"><a href="http://www.freeswitchsolutions.com">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 href="http://www.freeswitch.org">http://www.freeswitch.org</a></span></pre>
<pre><span lang="EN-US"><a href="http://confluence.freeswitch.org">http://confluence.freeswitch.org</a></span></pre>
<pre><span lang="EN-US"><a href="http://www.cluecon.com">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 href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a></span></pre>
<pre><span lang="EN-US"><a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a></span></pre>
<pre><span lang="EN-US">UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users">http://lists.freeswitch.org/mailman/options/freeswitch-users</a></span></pre>
<pre><span lang="EN-US"><a href="http://www.freeswitch.org">http://www.freeswitch.org</a></span></pre>
</blockquote>
<p class="MsoNormal" style="margin-bottom:12.0pt"><span lang="EN-US"> </span></p>
<pre><span lang="EN-US">-- </span></pre>
<pre><span lang="EN-US"> </span></pre>
<pre><span lang="EN-US">Saludos / Regards / Cumprimentos,</span></pre>
<pre><span lang="EN-US">António silva</span></pre>
<p class="MsoNormal"><span lang="EN-US" style="color:windowtext"><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 src="http://www.itec-support.co.uk/wp-content/uploads/2016/07/email_logo.jpg"></td>
<td valign="top">
<div><a style="font-family:calibri; color:#1B3E94; font-size:11pt">Shaun Stokes - Infrastructure Analyst</a></div>
<div>
<table>
<tbody>
<tr>
<td></td>
<td></td>
</tr>
<tr>
<td><a style="font-family:calibri; color:#1B3E94; font-size:11pt">T : </a></td>
<td><a style="font-family:calibri; color:#1B3E94; font-size:11pt">01453 700713</a></td>
</tr>
<tr>
<td><a style="font-family:calibri; color:#1B3E94; font-size:11pt">E : </a></td>
<td><a style="font-family:calibri; color:#1B3E94; font-size:11pt">shaun.stokes@itec-support.co.uk</a></td>
</tr>
<tr>
<td><a style="font-family:calibri; color:#1B3E94; font-size:11pt">W : </a></td>
<td><a 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 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 style="font-family:calibri; color:#1B3E94; font-size:11pt">Company No. 06908001</a>
</div>
<div><br>
<a style="font-family:calibri; color:Grey; font-size:11pt">CONFIDENTIALITY NOTICE</a>
<br>
<a 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 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="both">
______________________________________________________________________<BR>
This message has been checked for all known viruses by MessageLabs Virus Scanning Service.<BR>
______________________________________________________________________<BR>
</body>
</html>