[Freeswitch-users] Freeswitch freezes on increasing call traffic

shehzad p pmhshz at gmail.com
Tue Feb 3 22:38:24 PST 2009


Hi anthony,

I Modified the whole architecture of call routing system, 
Now after getting required routes, script exit and, 
control comes back to Dialplan, and call is bridged there,
And call hangup, CDR is posted to cdr.php file (using xml_cdr).

So now there is no blocking statement (bridge or anything like that) in
current javascript, It return back control instantly.

So, setting up all above architecture...
First I tested FS 1.0.1 , It get crashed two times, in interval of 3 to 5
hours and simultaneous call of about 100 to 150.
BT is the same as before...
http://www.nabble.com/file/p21825226/bt_new_arch.txt bt_new_arch.txt 

Now I am also testing 1.0.3RC1, and post it back if any found.

Thanks
msp


Clearly you have an issue with your javascript code.

You have the Garbage collector blocking in every thread.

Are you doing any endless loops in your code where you do not check
session.ready() as a condition for
continuing the script?

any time session.ready() fails you must immediately exit.

Are you using session.execute to execute long blocking operations like
bridging many calls or entering a conference?
You should avoid doing this as all the collective scripts on the system
share a common Garbage Collector provided by the
JS engine and it can lead to the exact issues you describe if the code is
not properly designed.

What else does you script do that are things provided by FS such as playing
files and executing applications.




-- 
View this message in context: http://www.nabble.com/Freeswitch-freezes-on-increasing-call-traffic-tp21701744p21825226.html
Sent from the Freeswitch-users mailing list archive at Nabble.com.





More information about the FreeSWITCH-users mailing list