help with mod_conference stability
We had our first big issues with our freeswitch system today. During at least 2 conferences, audio became jittery and there were three occasions where everyone was dropped from a conference. Even so, conference recording was not interrupted, and the freeswitch debug log doesn't show anything unusual. Our hardware monitoring software doesn't show any kind of unusual resources usage, and our web host claims there were no outages during the time when we were experiencing problems. We're currently running revision 12259. How should I proceed in diagnosing this issue? --Stephen
Stephen Crosby <stevecrozz@gmail.com> wrote:
We had our first big issues with our freeswitch system today. During at least 2 conferences, audio became jittery and there were three occasions where everyone was dropped from a conference. Even so, conference recording was not interrupted, and the freeswitch debug log doesn't show anything unusual.
My suspicion is that it's a network problem unrelated to FreeSWITCH. Did you try pinging the host while the problems were occurring? What did FreeSWITCH report in the log as the reason for terminating the calls to the conference?
Network problem is what I'm still thinking. Take a look at this log snippet: http://pastebin.freeswitch.org/8813 I'm CALLER_A, and you can see me calling back in on line 8 after I got dropped. But that was only seconds prior. There really seems to be nothing in the log at the time the calls were dropped. --Stephen On Mon, May 4, 2009 at 10:27 PM, Jason White <jason@jasonjgw.net> wrote:
Stephen Crosby <stevecrozz@gmail.com> wrote:
We had our first big issues with our freeswitch system today. During at least 2 conferences, audio became jittery and there were three occasions where everyone was dropped from a conference. Even so, conference recording was not interrupted, and the freeswitch debug log doesn't show anything unusual.
My suspicion is that it's a network problem unrelated to FreeSWITCH.
Did you try pinging the host while the problems were occurring?
What did FreeSWITCH report in the log as the reason for terminating the calls to the conference?
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
To answer the other question, I did not try pinging the host while the problems were occurring, but I was able to call back in with no problem only a few seconds after I got dropped (less than 20), so if it is a network issue it would have to have been very brief. --Stephen On Mon, May 4, 2009 at 10:52 PM, Stephen Crosby <stevecrozz@gmail.com>wrote:
Network problem is what I'm still thinking. Take a look at this log snippet: http://pastebin.freeswitch.org/8813
I'm CALLER_A, and you can see me calling back in on line 8 after I got dropped. But that was only seconds prior. There really seems to be nothing in the log at the time the calls were dropped.
--Stephen
On Mon, May 4, 2009 at 10:27 PM, Jason White <jason@jasonjgw.net> wrote:
Stephen Crosby <stevecrozz@gmail.com> wrote:
We had our first big issues with our freeswitch system today. During at least 2 conferences, audio became jittery and there were three occasions where everyone was dropped from a conference. Even so, conference recording was not interrupted, and the freeswitch debug log doesn't show anything unusual.
My suspicion is that it's a network problem unrelated to FreeSWITCH.
Did you try pinging the host while the problems were occurring?
What did FreeSWITCH report in the log as the reason for terminating the calls to the conference?
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Sorry for the extra messages, but I've just discovered something that probably helps pinpoint the problem: http://pastebin.freeswitch.org/8814 It seems that the callers were disconnected, but freeswitch had to wait a timeout period before it actually hangs up which looks like about 5 minutes. So I was disconnected from a conference, then I called back in, then freeswitch later hung up on the first call. This seems very much like a network problem. What can I do to fix it? --Stephen On Mon, May 4, 2009 at 10:55 PM, Stephen Crosby <stevecrozz@gmail.com>wrote:
To answer the other question, I did not try pinging the host while the problems were occurring, but I was able to call back in with no problem only a few seconds after I got dropped (less than 20), so if it is a network issue it would have to have been very brief.
--Stephen
On Mon, May 4, 2009 at 10:52 PM, Stephen Crosby <stevecrozz@gmail.com>wrote:
Network problem is what I'm still thinking. Take a look at this log snippet: http://pastebin.freeswitch.org/8813
I'm CALLER_A, and you can see me calling back in on line 8 after I got dropped. But that was only seconds prior. There really seems to be nothing in the log at the time the calls were dropped.
--Stephen
On Mon, May 4, 2009 at 10:27 PM, Jason White <jason@jasonjgw.net> wrote:
Stephen Crosby <stevecrozz@gmail.com> wrote:
We had our first big issues with our freeswitch system today. During at least 2 conferences, audio became jittery and there were three occasions where everyone was dropped from a conference. Even so, conference recording was not interrupted, and the freeswitch debug log doesn't show anything unusual.
My suspicion is that it's a network problem unrelated to FreeSWITCH.
Did you try pinging the host while the problems were occurring?
What did FreeSWITCH report in the log as the reason for terminating the calls to the conference?
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Stephen Crosby <stevecrozz@gmail.com> wrote:
Sorry for the extra messages, but I've just discovered something that probably helps pinpoint the problem: http://pastebin.freeswitch.org/8814
It seems that the callers were disconnected, but freeswitch had to wait a timeout period before it actually hangs up which looks like about 5 minutes. So I was disconnected from a conference, then I called back in, then freeswitch later hung up on the first call. This seems very much like a network problem.
Yes, and it was the device at your end that terminated the call. I would start by setting up alarm pings (say, ping -a) on my local machine and listening for jitter and drop-outs. If it turns out to be a network problem, then it's very likely an issue between you and your hosting provider at that point.
I was on this conference and there were 4 of us that got dropped at the same time. By the way, these were all regular PSTN lines calling through our SIP provider and being routed to our freeswitch instance which is being hosted on a VPS. When you say a device on my end terminated the call, do you mean our home telephones which we used to dial in or the freeswitch box? --Stephen On Mon, May 4, 2009 at 11:22 PM, Jason White <jason@jasonjgw.net> wrote:
Stephen Crosby <stevecrozz@gmail.com> wrote:
Sorry for the extra messages, but I've just discovered something that probably helps pinpoint the problem: http://pastebin.freeswitch.org/8814
It seems that the callers were disconnected, but freeswitch had to wait a timeout period before it actually hangs up which looks like about 5 minutes. So I was disconnected from a conference, then I called back in, then freeswitch later hung up on the first call. This seems very much like a network problem.
Yes, and it was the device at your end that terminated the call.
I would start by setting up alarm pings (say, ping -a) on my local machine and listening for jitter and drop-outs. If it turns out to be a network problem, then it's very likely an issue between you and your hosting provider at that point.
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Stephen Crosby <stevecrozz@gmail.com> wrote:
I was on this conference and there were 4 of us that got dropped at the same time. By the way, these were all regular PSTN lines calling through our SIP provider and being routed to our freeswitch instance which is being hosted on a VPS.
When you say a device on my end terminated the call, do you mean our home telephones which we used to dial in or the freeswitch box?
No, I mean the SIP device managing your end of the connection, which in that case would be your SIP -> PSTN provider.
Stephen Crosby <stevecrozz@gmail.com> wrote:
Network problem is what I'm still thinking. Take a look at this log snippet:
http://pastebin.freeswitch.org/8813
I'm CALLER_A, and you can see me calling back in on line 8 after I got dropped. But that was only seconds prior. There really seems to be nothing in the log at the time the calls were dropped.
In particular, the "dropped" calls weren't shown to have terminated at that point. Can you search through the logs and find out when they did terminate, and why? A time-out, perhaps? Assuming that FreeSWITCH didn't crash, and show channels indicates that those sessions aren't still current, they must have timed out or otherwise terminated at some point, which would have left log messages. I've been in situations involving brief network outages (say, 10 seconds) after which FreeSWITCH conferences have resumed as normal, with no dropped connections. However, those circumstances involved FreeSWITCH instances on both ends of the call; it is possible, though uninformed speculation on my part, that some other devices might time out quicker in the event of network issues. Another test you could try, if this persists, is to run FreeSWITCH locally and use it to call the conference. If the call terminates abnormally, you will then have the logs at both ends. Of course, your phone might have logs itself, but the FreeSWITCH ones are probably better. Your report of jitter is also indicative of a less than reliable network.
First off you're not on SVN trunk secondly Are you executing the conference app inside your js file? If so then there could be the problem! You have also forgotten to include anything about Distro, OS, CPU and Memory. /b On May 5, 2009, at 12:12 AM, Stephen Crosby wrote:
We had our first big issues with our freeswitch system today. During at least 2 conferences, audio became jittery and there were three occasions where everyone was dropped from a conference. Even so, conference recording was not interrupted, and the freeswitch debug log doesn't show anything unusual.
Our hardware monitoring software doesn't show any kind of unusual resources usage, and our web host claims there were no outages during the time when we were experiencing problems.
We're currently running revision 12259.
How should I proceed in diagnosing this issue?
--Stephen
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
I know I'm not on svn trunk, but this is a production server and it's just not feasible to update it constantly. I can update it though if you think I need to. I am routing callers to the conference app with javascript like this: session.execute("conference", xyz); Can you tell me more about the problems I could have? The machine running freeswitch has 1024MB memory and I'm not sure about the CPU since its a VPS. --Stephen On Tue, May 5, 2009 at 3:49 AM, Brian West <brian@freeswitch.org> wrote:
First off you're not on SVN trunk secondly Are you executing the conference app inside your js file? If so then there could be the problem! You have also forgotten to include anything about Distro, OS, CPU and Memory. /b
On May 5, 2009, at 12:12 AM, Stephen Crosby wrote:
We had our first big issues with our freeswitch system today. During at least 2 conferences, audio became jittery and there were three occasions where everyone was dropped from a conference. Even so, conference recording was not interrupted, and the freeswitch debug log doesn't show anything unusual.
Our hardware monitoring software doesn't show any kind of unusual resources usage, and our web host claims there were no outages during the time when we were experiencing problems.
We're currently running revision 12259.
How should I proceed in diagnosing this issue?
--Stephen
Brian West brian@freeswitch.org
-- Meet us at ClueCon! http://www.cluecon.com
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Forgot to add that my OS is Ubuntu 8.04LTS (hardy heron). --Stephen On Tue, May 5, 2009 at 7:42 AM, Stephen Crosby <stevecrozz@gmail.com> wrote:
I know I'm not on svn trunk, but this is a production server and it's just not feasible to update it constantly. I can update it though if you think I need to. I am routing callers to the conference app with javascript like this: session.execute("conference", xyz); Can you tell me more about the problems I could have?
The machine running freeswitch has 1024MB memory and I'm not sure about the CPU since its a VPS.
--Stephen
On Tue, May 5, 2009 at 3:49 AM, Brian West <brian@freeswitch.org> wrote:
First off you're not on SVN trunk secondly Are you executing the conference app inside your js file? If so then there could be the problem! You have also forgotten to include anything about Distro, OS, CPU and Memory. /b
On May 5, 2009, at 12:12 AM, Stephen Crosby wrote:
We had our first big issues with our freeswitch system today. During at least 2 conferences, audio became jittery and there were three occasions where everyone was dropped from a conference. Even so, conference recording was not interrupted, and the freeswitch debug log doesn't show anything unusual.
Our hardware monitoring software doesn't show any kind of unusual resources usage, and our web host claims there were no outages during the time when we were experiencing problems.
We're currently running revision 12259.
How should I proceed in diagnosing this issue?
--Stephen
Brian West brian@freeswitch.org
-- Meet us at ClueCon! http://www.cluecon.com
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
You should rule out the network problems first, which sound more likely. you can reduce the overuse of JS if you transfer the call to a regular extension with a dynamic regex. session.execute("transfer", "conf-xyz"); then make a regex in your xml dialplan to pick up ^conf-(.*) and execute conference $1 On Tue, May 5, 2009 at 9:48 AM, Stephen Crosby <stevecrozz@gmail.com> wrote:
Forgot to add that my OS is Ubuntu 8.04LTS (hardy heron).
--Stephen
On Tue, May 5, 2009 at 7:42 AM, Stephen Crosby <stevecrozz@gmail.com>wrote:
I know I'm not on svn trunk, but this is a production server and it's just not feasible to update it constantly. I can update it though if you think I need to. I am routing callers to the conference app with javascript like this: session.execute("conference", xyz); Can you tell me more about the problems I could have?
The machine running freeswitch has 1024MB memory and I'm not sure about the CPU since its a VPS.
--Stephen
On Tue, May 5, 2009 at 3:49 AM, Brian West <brian@freeswitch.org> wrote:
First off you're not on SVN trunk secondly Are you executing the conference app inside your js file? If so then there could be the problem! You have also forgotten to include anything about Distro, OS, CPU and Memory. /b
On May 5, 2009, at 12:12 AM, Stephen Crosby wrote:
We had our first big issues with our freeswitch system today. During at least 2 conferences, audio became jittery and there were three occasions where everyone was dropped from a conference. Even so, conference recording was not interrupted, and the freeswitch debug log doesn't show anything unusual.
Our hardware monitoring software doesn't show any kind of unusual resources usage, and our web host claims there were no outages during the time when we were experiencing problems.
We're currently running revision 12259.
How should I proceed in diagnosing this issue?
--Stephen
Brian West brian@freeswitch.org
-- Meet us at ClueCon! http://www.cluecon.com
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@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 FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
Why is initiating a conference from a dial plan entry better than directly from an internal script? Is there a page that details what is and isn't script abuse? On 5/5/09, Anthony Minessale <anthony.minessale@gmail.com> wrote:
You should rule out the network problems first, which sound more likely.
you can reduce the overuse of JS if you transfer the call to a regular extension with a dynamic regex.
session.execute("transfer", "conf-xyz");
then make a regex in your xml dialplan to pick up ^conf-(.*) and execute conference $1
On Tue, May 5, 2009 at 9:48 AM, Stephen Crosby <stevecrozz@gmail.com> wrote:
Forgot to add that my OS is Ubuntu 8.04LTS (hardy heron).
--Stephen
On Tue, May 5, 2009 at 7:42 AM, Stephen Crosby <stevecrozz@gmail.com>wrote:
I know I'm not on svn trunk, but this is a production server and it's just not feasible to update it constantly. I can update it though if you think I need to. I am routing callers to the conference app with javascript like this: session.execute("conference", xyz); Can you tell me more about the problems I could have?
The machine running freeswitch has 1024MB memory and I'm not sure about the CPU since its a VPS.
--Stephen
On Tue, May 5, 2009 at 3:49 AM, Brian West <brian@freeswitch.org> wrote:
First off you're not on SVN trunk secondly Are you executing the conference app inside your js file? If so then there could be the problem! You have also forgotten to include anything about Distro, OS, CPU and Memory. /b
On May 5, 2009, at 12:12 AM, Stephen Crosby wrote:
We had our first big issues with our freeswitch system today. During at least 2 conferences, audio became jittery and there were three occasions where everyone was dropped from a conference. Even so, conference recording was not interrupted, and the freeswitch debug log doesn't show anything unusual.
Our hardware monitoring software doesn't show any kind of unusual resources usage, and our web host claims there were no outages during the time when we were experiencing problems.
We're currently running revision 12259.
How should I proceed in diagnosing this issue?
--Stephen
Brian West brian@freeswitch.org
-- Meet us at ClueCon! http://www.cluecon.com
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@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
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
-- Sent from my mobile device
Javascript has it's own issues. Tony wrote FreeSWITCH, including the dialplan parser. The less you can use JS, especially in a high-volume environment, the better. The happy medium is to use Lua. It is small, lightweight, easy, and designed to be embedded. Tony has had 3000 Lua session up simultaneously with no issues. I guarantee you that JS would have a meltdown at a fraction of that volume... -MC On Thu, May 14, 2009 at 9:32 AM, Mike Fedyk <mfedyk@mikefedyk.com> wrote:
Why is initiating a conference from a dial plan entry better than directly from an internal script? Is there a page that details what is and isn't script abuse?
On 5/5/09, Anthony Minessale <anthony.minessale@gmail.com> wrote:
You should rule out the network problems first, which sound more likely.
you can reduce the overuse of JS if you transfer the call to a regular extension with a dynamic regex.
session.execute("transfer", "conf-xyz");
then make a regex in your xml dialplan to pick up ^conf-(.*) and execute conference $1
On Tue, May 5, 2009 at 9:48 AM, Stephen Crosby <stevecrozz@gmail.com> wrote:
Forgot to add that my OS is Ubuntu 8.04LTS (hardy heron).
--Stephen
On Tue, May 5, 2009 at 7:42 AM, Stephen Crosby <stevecrozz@gmail.com>wrote:
I know I'm not on svn trunk, but this is a production server and it's just not feasible to update it constantly. I can update it though if you think I need to. I am routing callers to the conference app with javascript like this: session.execute("conference", xyz); Can you tell me more about the problems I could have?
The machine running freeswitch has 1024MB memory and I'm not sure about the CPU since its a VPS.
--Stephen
On Tue, May 5, 2009 at 3:49 AM, Brian West <brian@freeswitch.org> wrote:
First off you're not on SVN trunk secondly Are you executing the conference app inside your js file? If so then there could be the problem! You have also forgotten to include anything about Distro, OS, CPU and Memory. /b
On May 5, 2009, at 12:12 AM, Stephen Crosby wrote:
We had our first big issues with our freeswitch system today. During at least 2 conferences, audio became jittery and there were three occasions where everyone was dropped from a conference. Even so, conference recording was not interrupted, and the freeswitch debug log doesn't show anything unusual.
Our hardware monitoring software doesn't show any kind of unusual resources usage, and our web host claims there were no outages during the time when we were experiencing problems.
We're currently running revision 12259.
How should I proceed in diagnosing this issue?
--Stephen
Brian West brian@freeswitch.org
-- Meet us at ClueCon! http://www.cluecon.com
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE: http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@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
FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/
AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com>< MSN%3Aanthony_minessale@hotmail.com<MSN%253Aanthony_minessale@hotmail.com>
GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> <PAYPAL%3Aanthony.minessale@gmail.com<PAYPAL%253Aanthony.minessale@gmail.com>
IRC: irc.freenode.net #freeswitch
FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org>< sip%3A888@conference.freeswitch.org<sip%253A888@conference.freeswitch.org>
iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> <googletalk%3Aconf%2B888@conference.freeswitch.org<googletalk%253Aconf%252B888@conference.freeswitch.org>
pstn:213-799-1400
-- Sent from my mobile device
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
The script has a javascript interpreter allocated sitting there eating up ram for no reason... so to scale better its wise to exit the script and do your conference. Lua is lighter weight but still having the interpreter hang around when not needed isn't wise. /b On May 14, 2009, at 11:32 AM, Mike Fedyk wrote:
Why is initiating a conference from a dial plan entry better than directly from an internal script? Is there a page that details what is and isn't script abuse?
On 5/5/09, Anthony Minessale <anthony.minessale@gmail.com> wrote:
You should rule out the network problems first, which sound more likely.
you can reduce the overuse of JS if you transfer the call to a regular extension with a dynamic regex.
session.execute("transfer", "conf-xyz");
then make a regex in your xml dialplan to pick up ^conf-(.*) and execute conference $1
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
I keep hearing that lua is lighter weight / more scalable than javascript. I'd love to see some data that shows how big the difference really is. I could port all my scripts from javascript to lua, but it would require a lot of overhead (me learning lua + actually porting the scripts). I want to know how much benefit there really is to that. --Stephen On Thu, May 14, 2009 at 10:01 AM, Brian West <brian@freeswitch.org> wrote:
The script has a javascript interpreter allocated sitting there eating up ram for no reason... so to scale better its wise to exit the script and do your conference. Lua is lighter weight but still having the interpreter hang around when not needed isn't wise.
/b
On May 14, 2009, at 11:32 AM, Mike Fedyk wrote:
Why is initiating a conference from a dial plan entry better than directly from an internal script? Is there a page that details what is and isn't script abuse?
On 5/5/09, Anthony Minessale <anthony.minessale@gmail.com> wrote:
You should rule out the network problems first, which sound more likely.
you can reduce the overuse of JS if you transfer the call to a regular
extension with a dynamic regex.
session.execute("transfer", "conf-xyz");
then make a regex in your xml dialplan to pick up ^conf-(.*) and execute
conference $1
Brian West brian@freeswitch.org
-- Meet us at ClueCon! http://www.cluecon.com
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
Its obvious if you look at the size of the JS VM vs the lua VM.. it would clearly scale better not needing megs and megs of ram per call vs about 160kb for lua. Lua took about 20 min to learn and about an hour to get the finer points down. /b On May 14, 2009, at 12:24 PM, Stephen Crosby wrote:
I keep hearing that lua is lighter weight / more scalable than javascript. I'd love to see some data that shows how big the difference really is. I could port all my scripts from javascript to lua, but it would require a lot of overhead (me learning lua + actually porting the scripts). I want to know how much benefit there really is to that.
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
How would using the mod_event_socket compare to lua / javascript with regards performance and scaling? (ignoring the client side of the socket, just the Freeswitch side). Is there any performance issues to placing a call into conference using with callflow from the mod_socket? N. 2009/5/14 Brian West <brian@freeswitch.org>:
Its obvious if you look at the size of the JS VM vs the lua VM.. it would clearly scale better not needing megs and megs of ram per call vs about 160kb for lua. Lua took about 20 min to learn and about an hour to get the finer points down. /b
On May 14, 2009, at 12:24 PM, Stephen Crosby wrote:
I keep hearing that lua is lighter weight / more scalable than javascript. I'd love to see some data that shows how big the difference really is. I could port all my scripts from javascript to lua, but it would require a lot of overhead (me learning lua + actually porting the scripts). I want to know how much benefit there really is to that.
Brian West brian@freeswitch.org -- Meet us at ClueCon! http://www.cluecon.com
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- -- Sremium Ltd. Reg Number: 451937 Mobile: +353 (0)87 2393174 Web: www.sremium.com The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Statements and opinions expressed in this e-mail may not represent those of Sremium. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender immediately and delete the material from any computer.
I think its less obvious to a user who'd never heard of lua until recently. I think it would be very helpful if someone had a comparison and could put it on the wiki. I spent some time poking around on the wiki before I decided to write my scripts in javascript. If I had seen any warnings on scalability/performance, especially with good data to back it up, I probably would have chosen something else. --Stephen On Thu, May 14, 2009 at 10:31 AM, Brian West <brian@freeswitch.org> wrote:
Its obvious if you look at the size of the JS VM vs the lua VM.. it would clearly scale better not needing megs and megs of ram per call vs about 160kb for lua. Lua took about 20 min to learn and about an hour to get the finer points down. /b
On May 14, 2009, at 12:24 PM, Stephen Crosby wrote:
I keep hearing that lua is lighter weight / more scalable than javascript. I'd love to see some data that shows how big the difference really is. I could port all my scripts from javascript to lua, but it would require a lot of overhead (me learning lua + actually porting the scripts). I want to know how much benefit there really is to that.
Brian West brian@freeswitch.org
-- Meet us at ClueCon! http://www.cluecon.com
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
On Thu, 2009-05-14 at 12:31 -0500, Brian West wrote:
Its obvious if you look at the size of the JS VM vs the lua VM.. it would clearly scale better not needing megs and megs of ram per call vs about 160kb for lua.
Isn't this a bit of a non sequitur, given that there ought to be just one copy of the JS interpreter in RAM which is shared across all of the calls/threads which need to use it? --Dave
Unfortunately, no scripting language we have encountered has ever done proper threading to the point that you could even begin to do that. Lua is one of the better ones in a threaded env only because they solved the problem by making a tiny VM that can be easily reproduced thousands of times. You still can't share a lua vm across threads or it will crash because they use lots of setjmp longjmp calls to travel between their virtual stack and the real one. As a matter of fact, spidermonkey has code that tries to be threadsafe (but you have to enable it, --with-threadsafe makes me nervous =]) and it shares as much as it can already and we have debated changing it so it creates a whole JS instance per call just because of all the garbage collection and thread safety issues we have encountered. you have to call a whole bunch of hidden mutexes marked suspend and resume etc everywhere in the code where you transition from executing script side code to a blocking FreeSWITCH function. Really, the only point in my original comment was that if you want to scale up something that uses scripting the first way to save resources is to not leave the script open while you do something you know will take a long time "playing a 2 hour file, bridging a call, joining a conference" because the script resources are allocated and doing nothing this whole time and they all share a global garbage collector. if you don't need to remain in the script just transfer the call to a static extension and close it. It's just a suggestion really. On Thu, May 14, 2009 at 4:56 PM, David Knell <dave@3c.co.uk> wrote:
On Thu, 2009-05-14 at 12:31 -0500, Brian West wrote:
Its obvious if you look at the size of the JS VM vs the lua VM.. it would clearly scale better not needing megs and megs of ram per call vs about 160kb for lua.
Isn't this a bit of a non sequitur, given that there ought to be just one copy of the JS interpreter in RAM which is shared across all of the calls/threads which need to use it?
--Dave
_______________________________________________ Freeswitch-users mailing list Freeswitch-users@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 FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ AIM: anthm MSN:anthony_minessale@hotmail.com <MSN%3Aanthony_minessale@hotmail.com> GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com<PAYPAL%3Aanthony.minessale@gmail.com> IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org <sip%3A888@conference.freeswitch.org> iax:guest@conference.freeswitch.org/888 googletalk:conf+888@conference.freeswitch.org<googletalk%3Aconf%2B888@conference.freeswitch.org> pstn:213-799-1400
participants (8)
-
Anthony Minessale
-
Brian West
-
David Knell
-
Jason White
-
Michael Collins
-
Mike Fedyk
-
Niall Crosby
-
Stephen Crosby