<div dir="ltr">Hi all,<div><br></div><div><div>I have a high CPU consumption by FreeSWITCH. In fact, consumption is highest on CPU system. On this server we have registered 20 sessions (WebRTC).</div><div><br></div><div>Environment:</div><div><ul><li>CentOS 6.7 64b</li><li>FreeSWITCh 1.5.14</li></ul></div><div><br></div><div>The results of the execution of:</div><div><br></div><div>step 1) <b>ps -LlFm -p `pidof freeswitch`</b></div><div><div><br></div><div><font face="monospace, monospace">F S UID PID PPID LWP C NLWP PRI NI ADDR SZ WCHAN RSS PSR STIME TTY TIME CMD</font></div><div><font face="monospace, monospace">1 - 499 4481 1 - 99 55 - - - 216700 - 140840 - Jun28 ? 17:55:10 /usr/bin/freeswitch -nc</font></div><div><font face="monospace, monospace">1 S 499 - - 4481 0 - 99 19 - - poll_s - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4482 0 - 99 19 - - poll_s - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4483 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:32 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4484 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:03 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4487 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:01 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4488 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:04 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4489 0 - 99 19 - - poll_s - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4490 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:01 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4492 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4493 0 - 99 19 - - ep_pol - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4494 0 - 99 19 - - ep_pol - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace" color="#ff0000"><b>1 R 499 - - 4495 97 - 99 19 - - - - 0 Jun28 - 17:37:34 -</b></font></div><div><font face="monospace, monospace">1 S 499 - - 4496 0 - 99 19 - - ep_pol - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4497 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4498 0 - 99 19 - - poll_s - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4499 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4500 0 - 99 19 - - poll_s - 0 Jun28 - 00:00:01 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4501 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4502 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4503 0 - 99 19 - - poll_s - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4504 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4510 0 - 99 19 - - inet_c - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4511 0 - 99 19 - - timerf - 0 Jun28 - 00:00:18 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4512 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4513 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:00 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4536 0 - 99 19 - - hrtime - 0 Jun28 - 00:00:03 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4558 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:43 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4559 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:43 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4560 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:43 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4561 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:43 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4562 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:43 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4564 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:39 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4565 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:43 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4567 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:39 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4568 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:40 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4569 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:40 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4570 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:40 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4571 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:39 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4572 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:40 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4573 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:39 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4575 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:40 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4636 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4637 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4638 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4639 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4640 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4641 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4642 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4643 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4644 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4645 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4646 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4647 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4648 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div><div><font face="monospace, monospace">1 S 499 - - 4649 0 - 99 19 - - futex_ - 0 Jun28 - 00:00:17 -</font></div></div><div><br></div><div>step 2) <b>pstack 4481</b><br></div><div><br></div><div><div><font face="monospace, monospace" color="#0000ff">Thread 45 (Thread 0x7ff6ba08a700 (LWP 4495)):</font></div><div><font face="monospace, monospace" color="#0000ff">#0 0x0000003410ce8e63 in epoll_wait () from /lib64/libc.so.6</font></div><div><font face="monospace, monospace" color="#0000ff">#1 0x00007ff6b877bba5 in ?? () from /usr/local/freeswitch/mod/mod_sofia.so</font></div><div><font face="monospace, monospace" color="#0000ff">#2 0x00007ff6b877ba28 in ?? () from /usr/local/freeswitch/mod/mod_sofia.so</font></div><div><font face="monospace, monospace" color="#0000ff">#3 0x00007ff6b8779715 in ?? () from /usr/local/freeswitch/mod/mod_sofia.so</font></div><div><font face="monospace, monospace" color="#0000ff">#4 0x00000034110079d1 in start_thread () from /lib64/libpthread.so.0</font></div><div><font face="monospace, monospace" color="#0000ff">#5 0x0000003410ce886d in clone () from /lib64/libc.so.6</font></div></div><div><br></div><div>Any idea?</div><div><br></div><div><br></div><div>Thanks,</div><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><div dir="ltr"><p><b><span style="font-size:8pt;color:rgb(255,102,0)" lang="EN-GB">PRESENCE TECHNOLOGY</span></b><b><span style="font-size:8pt;color:rgb(127,127,127)" lang="EN-GB"><br></span></b><b><span style="font-size:8pt" lang="EN-GB">Agustí Ubalde Bellot</span></b><span style="font-size:8pt" lang="EN-GB"><br>Chief Developer<br>C/ Comte Urgell 240 3A<br>Barcelona 08036<br></span><a href="mailto:aubalde@presenceco.com" target="_blank"><span style="font-size:8pt;color:rgb(255,102,0)" lang="EN-GB">aubalde@presenceco.com</span></a><span style="font-size:8pt;color:rgb(255,102,0)" lang="EN-US"></span></p><p><span style="font-size:8pt" lang="EN-GB">Ph: +34 93 10 10 300 <br>Fx: +34 93 10 10 333</span></p><p><span style="font-size:8pt" lang="EN-GB"></span></p><p><a href="http://www.presenceco.com/" target="_blank"><b><span style="font-size:8pt;color:rgb(255,102,0)" lang="EN-US">www.presenceco.com</span></b></a><b><span style="font-size:8pt;color:rgb(255,102,0)" lang="EN-US"></span></b></p><p><span style="font-size:8pt" lang="EN-GB"></span><b><span style="font-size:8pt" lang="EN-GB">Follow us on:</span></b></p><p><a href="http://twitter.com/presencetech" target="_blank"><b><span style="font-size:8pt;color:rgb(127,127,127);text-decoration:none"><img src="http:///?ui=2&ik=83a9f1b73b&view=att&th=12fd953358e012d9&attid=0.0.1&disp=emb&zw" alt="tw" height="25" border="0" width="29"></span></b></a><a href="http://www.youtube.com/PresenceTechnology" target="_blank"><b><span style="font-size:8pt;color:rgb(127,127,127);text-decoration:none"><img src="http:///?ui=2&ik=83a9f1b73b&view=att&th=12fd953358e012d9&attid=0.0.2&disp=emb&zw" alt="yt" height="25" border="0" width="29"></span></b></a><a href="http://www.linkedin.com/groups?mostPopular=&gid=2898558" target="_blank"><b><span style="font-size:8pt;color:rgb(127,127,127);text-decoration:none"><img src="http:///?ui=2&ik=83a9f1b73b&view=att&th=12fd953358e012d9&attid=0.0.3&disp=emb&zw" alt="in" height="25" border="0" width="29"></span></b></a><a href="http://www.slideshare.net/PresenceTech" target="_blank"><b><span style="font-size:8pt;color:rgb(127,127,127);text-decoration:none"><img src="http:///?ui=2&ik=83a9f1b73b&view=att&th=12fd953358e012d9&attid=0.0.4&disp=emb&zw" alt="ss" height="25" border="0" width="29"></span></b></a><a href="http://www.facebook.com/presencetech" target="_blank"><b><span style="font-size:8pt;color:rgb(127,127,127);text-decoration:none"><img src="http:///?ui=2&ik=83a9f1b73b&view=att&th=12fd953358e012d9&attid=0.0.5&disp=emb&zw" alt="fb" height="25" border="0" width="29"></span></b></a><b><span style="font-size:8pt;color:rgb(127,127,127)" lang="EN-GB"></span></b></p><p><span lang="EN-US" style="font-size:8pt;color:rgb(127,127,127)">For additional information, please visit our website </span><a href="http://www.presenceco.com/" style="font-size:12.8px" target="_blank"><b><span style="font-size:8pt;color:rgb(255,102,0)" lang="EN-US">www.presenceco.com</span></b></a><br></p></div></div></div></div></div>
</div></div>
<br>
<p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(34,34,34);background:white"><b><span lang="EN-US" style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(127,127,127)">Presence Technology - Disclaimer<br>This message, its content and any file attached thereto is for the intended recipient only and is confidential and /or privileged. If you have received this e-mail in error or had access to it, you should note that the information in it is private and any use thereof is unauthorized. In such an event please notify us by e-mail or by telephone (+ 34 93 10 10 300). Any reproduction of this e-mail by whatsoever means and any transmission or dissemination thereof to other persons is prohibited. It should be deleted immediately from your system. Presence Technology reserves the right to take legal action against any persons unlawfully gaining access to the content of any external message it has emitted.</span></b><span lang="EN-US"></span></p><p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(34,34,34);background:white"><b><span lang="EN-US" style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(127,127,127)">For additional information, please visit our website </span></b><b><span lang="EN-US" style="font-size:8pt;font-family:Arial,sans-serif;color:rgb(255,102,0)"><a href="http://www.presenceco.com/" style="color:rgb(17,85,204)" target="_blank"><span style="color:rgb(255,102,0)">www.presenceco.com</span></a></span></b><span lang="EN-US"></span></p><p style="margin:0cm 0cm 0.0001pt;font-size:11pt;font-family:Calibri,sans-serif;color:rgb(34,34,34);background-color:rgb(255,255,255)"><span lang="EN-US"> </span></p>