[Freeswitch-users] 100% CPU usage

Grant Bagdasarian gb at cm.nl
Mon Mar 13 11:04:28 MSK 2017


Hi Antony and Antonio,

Thank you for the tips.
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.

Regards,

Grant

From: freeswitch-users-bounces at lists.freeswitch.org [mailto:freeswitch-users-bounces at lists.freeswitch.org] On Behalf Of Anthony Minessale
Sent: zaterdag 11 maart 2017 00:07
To: FreeSWITCH Users Help <freeswitch-users at lists.freeswitch.org>
Subject: Re: [Freeswitch-users] 100% CPU usage

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.


On Fri, Mar 10, 2017 at 6:11 AM, Antonio Silva <asilva at wirelessmundi.com<mailto:asilva at wirelessmundi.com>> wrote:
Hi,

You can use the following commands:

#get a core:

gcore -o /home/gcore-$(date +%s) $(cat /var/run/freeswitch/freeswitch.pid)





#check thread usage:

top -p $(cat /var/run/freeswitch/freeswitch.pid) -H -b -n 1





#memory mapping:

cat /proc/$(cat /var/run/freeswitch/freeswitch.pid)/maps


you can get some info from fs:

fs_cli -x "sofia global siptrace on"

fs_cli -x "fsctl debug_level 10"

fs_cli -x "sofia loglevel all 9"

fs_cli -x "fsctl debug_sql "

fs_cli -x "sofia global debug presence"


Put everything into a jira so we can take a look.


Regards,
António

On 03/10/2017 11:08 AM, Grant Bagdasarian wrote:
Hi,

We’re currently experiencing a weird issue with one of our freeswitch servers where the CPU just goes berserk and stays at 100%.
There are no active calls at that moment, but FS is still using 100% CPU.

I was unable to get a debug using gdb, since freeswitch does not crash.

We had this issue on 1.6.13 and then I upgraded to 1.6.15 this morning, but the problem still persists.
There is currently only one active application running on this box which is using LUA. Maybe that is causing the issue?
We checked the code but there are no weird loops etc. Perhaps we are missing something?

Any ideas how to trace this?

Regards,

Grant



_________________________________________________________________________

Professional FreeSWITCH Consulting Services:

consulting at freeswitch.org<mailto:consulting at freeswitch.org>

http://www.freeswitchsolutions.com



Official FreeSWITCH Sites

http://www.freeswitch.org

http://confluence.freeswitch.org

http://www.cluecon.com



FreeSWITCH-users mailing list

FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>

http://lists.freeswitch.org/mailman/listinfo/freeswitch-users

UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users

http://www.freeswitch.org



--



Saludos / Regards / Cumprimentos,

António silva

_________________________________________________________________________
Professional FreeSWITCH Consulting Services:
consulting at freeswitch.org<mailto:consulting at freeswitch.org>
http://www.freeswitchsolutions.com

Official FreeSWITCH Sites
http://www.freeswitch.org
http://confluence.freeswitch.org
http://www.cluecon.com

FreeSWITCH-users mailing list
FreeSWITCH-users at lists.freeswitch.org<mailto:FreeSWITCH-users at lists.freeswitch.org>
http://lists.freeswitch.org/mailman/listinfo/freeswitch-users
UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users
http://www.freeswitch.org



--
Anthony Minessale II       ♬ @anthmfs  ♬ @FreeSWITCH  ♬

☞ http://freeswitch.org/http://cluecon.com/http://twitter.com/FreeSWITCH
☞ irc.freenode.net<http://irc.freenode.net> #freeswitch ☞ http://freeswitch.org/g+
ClueCon Weekly Development Call
☎ sip:888 at conference.freeswitch.org<mailto:sip%3A888 at conference.freeswitch.org>  ☎ +19193869900

https://www.youtube.com/watch?v=9XXgW34t40s
https://www.youtube.com/watch?v=NLaDpGQuZDA
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.freeswitch.org/pipermail/freeswitch-users/attachments/20170313/2a15a1fc/attachment.html 


Join us at ClueCon 2016 Aug 8-12, 2016
More information about the FreeSWITCH-users mailing list