<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">You have some limits on your system causing thread create failure. Look at your ulimits or if you are running virtualized, all the related limits there.<div class=""><br class=""><div><blockquote type="cite" class=""><div class="">On Jan 22, 2015, at 7:13 PM, Ahmed Habiba <<a href="mailto:ahabiba@gmail.com" class="">ahabiba@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><meta http-equiv="Content-Type" content="text/html charset=utf-8" class=""><div style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class=""><div style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class="">Thank you really Michael,</div><div style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class=""><br class=""></div><div style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class="">I go through logs and I find the below, the question why could lead to that, the machine is 16 core??</div><div style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class=""><br class=""></div><div style="font-family: Helvetica, Arial; margin: 0px;" class=""><div style="font-size: 11px; margin: 0px; font-family: Menlo;" class="">2015-01-23 02:06:59.593497 [CRIT] switch_core_session.c:1780 Thread Failure!</div><div style="font-size: 11px; margin: 0px; font-family: Menlo;" class="">2015-01-23 02:06:59.593497 [CRIT] switch_core_session.c:1713 LUKE: I'm hit, but not bad.</div><div style="font-size: 11px; margin: 0px; font-family: Menlo;" class="">2015-01-23 02:06:59.593497 [CRIT] switch_core_session.c:1714 LUKE'S VOICE: Artoo, see what you can do with it. Hang on back there....</div><div style="font-size: 11px; margin: 0px; font-family: Menlo;" class="">Green laserfire moves past the beeping little robot as his head turns. After a few beeps and a twist of his mechanical arm,</div><div style="margin: 0px; font-family: Menlo;" class=""><span style="font-size: 11px;" class="">Artoo reduces the max session</span><font color="#791a3e" style="font-size: 14px;" class="">s to 346 thus</font><span style="font-size: 11px;" class="">, saving the switch from certain doom.</span></div><div style="font-size: 11px; margin: 0px; font-family: Menlo;" class=""><br class=""></div><div style="font-size: 11px; margin: 0px; font-family: Menlo;" class=""><br class=""></div></div><div style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class=""><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;" class="">Michael Jerris <<a href="mailto:mike@jerris.com" class="">mike@jerris.com</a>><br class=""></span></div><div style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class=""><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;" class="">FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" class="">freeswitch-users@lists.freeswitch.org</a>><br class=""></span></div><div style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class=""><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;" class="">January 23, 2015 at 2:51:18 AM GMT+3<br class=""></span></div><div style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class=""><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);" class=""><b class="">Reply-To: </b></span><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;" class="">FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" class="">freeswitch-users@lists.freeswitch.org</a>><br class=""></span></div><div style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class=""><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;" class=""><b class="">Re: [Freeswitch-users] Session Limit</b><br class=""></span></div><br style="font-family: Helvetica, Arial; font-size: 13px;" class=""><br style="font-family: Helvetica, Arial; font-size: 13px;" class=""><span style="font-family: Helvetica, Arial; font-size: 13px;" class="">look at the logs, if you extend beyond your resources and freeswitch can't start threads among other things, it will lower your session limit.</span><div class="" style="font-family: Helvetica, Arial; font-size: 13px;"><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jan 22, 2015, at 6:47 PM, Ahmed Habiba <<a href="mailto:ahabiba@gmail.com" class="">ahabiba@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;">Dears,<div class=""><br class=""></div><div class="">kindly Im facing some issue with concurrent session limit, below is the status showing the maximum sessions of 355, however I set maximum sessions to 10000, you kind help to identify why freeswitch use lower limit than the configured one will be appreciated.</div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">/etc/freeswitch# fs_cli -x "status"</div><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">UP 0 years, 0 days, 0 hours, 19 minutes, 2 seconds, 490 milliseconds, 264 microseconds</div><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">FreeSWITCH (Version 1.5.8b+git git 35f2bcc 2014-02-12 23:33:16Z 64bit) is ready</div><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">345 session(s) since startup</div><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">345 session(s) - peak 345, last 5min 345 </div><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">0 session(s) per Sec out of max 1000, peak 66, last 5min 0 </div><div class="" style="margin: 0px; font-family: Menlo;"><font color="#791a3e" size="2" class=""><b class="">335 session(s) max</b></font></div><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">min idle cpu 0.00/62.00</div><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">Current Stack Size/Max 240K/8192K</div></div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo;">switch.conf.xml:</div></div><div class=""><br class=""></div><div class=""><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(195, 55, 32);"><span class=""> </span><span class="" style="color: rgb(52, 187, 199);"><param </span><span class="" style="color: rgb(52, 189, 38);">name</span><span class="">=</span>"max-sessions"<span class="" style="color: rgb(52, 187, 199);"> </span><span class="" style="color: rgb(52, 189, 38);">value</span><span class="">=</span>"10000"<span class="" style="color: rgb(52, 187, 199);">/></span></div><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(83, 48, 225);"><span class=""> </span><!--Most channels to create per second --></div><div class="" style="margin: 0px; font-size: 11px; font-family: Menlo; color: rgb(195, 55, 32);"><span class=""> </span><span class="" style="color: rgb(52, 187, 199);"><param </span><span class="" style="color: rgb(52, 189, 38);">name</span><span class="">=</span>"sessions-per-second"<span class="" style="color: rgb(52, 187, 199);"> </span><span class="" style="color: rgb(52, 189, 38);">value</span><span class="">=</span>"1000”<span class="" style="color: rgb(52, 187, 199);">/></span></div></div></div></div></blockquote></div><br class=""></div><br style="font-family: Helvetica, Arial; font-size: 13px;" class=""><br style="font-family: Helvetica, Arial; font-size: 13px;" class=""><br style="font-family: Helvetica, Arial; font-size: 13px;" class=""><div style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class=""><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);" class=""><b class="">From: </b></span><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;" class="">Muhammad Naseer Bhatti <<a href="mailto:nbhatti@gmail.com" class="">nbhatti@gmail.com</a>><br class=""></span></div><div style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class=""><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);" class=""><b class="">To: </b></span><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;" class="">FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" class="">freeswitch-users@lists.freeswitch.org</a>>, Michael Jerris <<a href="mailto:mike@jerris.com" class="">mike@jerris.com</a>><br class=""></span></div><div style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class=""><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);" class=""><b class="">Date: </b></span><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;" class="">January 23, 2015 at 2:58:31 AM GMT+3<br class=""></span></div><div style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class=""><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);" class=""><b class="">Reply-To: </b></span><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;" class="">FreeSWITCH Users Help <<a href="mailto:freeswitch-users@lists.freeswitch.org" class="">freeswitch-users@lists.freeswitch.org</a>><br class=""></span></div><div style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class=""><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif; color: rgb(127, 127, 127);" class=""><b class="">Subject: </b></span><span style="font-family: -webkit-system-font, 'Helvetica Neue', Helvetica, sans-serif;" class=""><b class="">Re: [Freeswitch-users] Unable to access channel vars after session terminates evens with set_zombie_exec()</b><br class=""></span></div><br style="font-family: Helvetica, Arial; font-size: 13px;" class=""><br style="font-family: Helvetica, Arial; font-size: 13px;" class=""><div id="bloop_customfont" style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class=""><br class=""></div><div id="bloop_customfont" style="font-family: Helvetica, Arial; font-size: 13px; margin: 0px;" class="">Setting inline will have performance penalty? </div><br style="font-family: Helvetica, Arial; font-size: 13px;" class=""><div id="bloop_sign_1421971086118524928" class="bloop_sign" style="font-family: Helvetica, Arial; font-size: 13px;">—<div class="">Thanks,</div><div class="">Muhammad Naseer Bhatti</div></div><div style="font-family: Helvetica, Arial; font-size: 13px;" class=""><br class="">From: Michael Jerris <a href="mailto:mike@jerris.com" class=""><mike@jerris.com></a><br class="">Reply: FreeSWITCH Users Help <a href="mailto:freeswitch-users@lists.freeswitch.org" class=""><freeswitch-users@lists.freeswitch.org>></a><br class="">Date: January 23, 2015 at 2:11:48 AM<br class="">To: FreeSWITCH Users Help <a href="mailto:freeswitch-users@lists.freeswitch.org" class=""><freeswitch-users@lists.freeswitch.org>></a><br class="">Subject: Re: [Freeswitch-users] Unable to access channel vars after session terminates evens with set_zombie_exec() <br class=""></div><br style="font-family: Helvetica, Arial; font-size: 13px;" class=""><blockquote type="cite" class="clean_bq" style="font-family: Helvetica, Arial; font-size: 13px;"><div class="" style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;"><div class=""></div><div class="">if you set them using inline they will be set during routing state, before it goes to execute. Once it is in execute state, it checks status between every action.<div class=""><br class=""><div class=""><blockquote type="cite" class=""><div class="">On Jan 22, 2015, at 3:53 PM, Muhammad Naseer Bhatti <<a href="mailto:nbhatti@gmail.com" class="">nbhatti@gmail.com</a>> wrote:</div><br class="Apple-interchange-newline"><div class=""><div id="bloop_customfont" class="" style="margin: 0px;"><br class="Apple-interchange-newline">I need to access some channel variables being set in the dialplan, but the channel is already hanged up too quick, ORIGINATOR_CANCEL. Since the session was still setting up the channel variables. I have tried app, set_zombie_exec but still not able to see any channel vars set in the dial plan. Am i doing something wrong or if there is a better way to see the channel vars if the session terminates too soon?</div><div id="bloop_customfont" class="" style="margin: 0px;"><br class=""></div><div id="bloop_customfont" class="" style="margin: 0px;">With: <span class="" style="background-color: rgb(0, 0, 0); color: rgb(255, 255, 255); font-family: Menlo; font-size: 11px;">git a067a49</span></div><div id="bloop_customfont" class="" style="margin: 0px;"><br class=""></div><div id="bloop_customfont" class="" style="margin: 0px;">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Regex (PASS) [internal] destination_number(1786866) =~ /$/ break=on-false</div><div id="bloop_customfont" class="" style="margin: 0px;"><b class="">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Action set_zombie_exec() </b></div><div id="bloop_customfont" class="" style="margin: 0px;">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Action set(hangup_after_bridge=true) </div><div id="bloop_customfont" class="" style="margin: 0px;">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Action set(continue_on_fail=true) </div><div id="bloop_customfont" class="" style="margin: 0px;">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Action set(fail_on_single_reject=USER_BUSY,NO_ANSWER,NO_USER_RESPONSE,ORIGINATOR_CANCEL) </div><div id="bloop_customfont" class="" style="margin: 0px;">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Action set(disable_hold=true) </div><div id="bloop_customfont" class="" style="margin: 0px;">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Action set(failed_json_cdr_prefix=failed_cdr_index) </div><div id="bloop_customfont" class="" style="margin: 0px;">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Action set(debug_cdr=0) </div><div id="bloop_customfont" class="" style="margin: 0px;">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Action set(debug_cdr_sql=1) </div><div id="bloop_customfont" class="" style="margin: 0px;">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Action set(cust_default_lrn=intra) </div><div id="bloop_customfont" class="" style="margin: 0px;">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Action set(cust_lrn_dip_cost=0.01817) </div><div id="bloop_customfont" class="" style="margin: 0px;">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Action set(cust_jurisdiction=INTRASTATE) </div><div id="bloop_customfont" class="" style="margin: 0px;">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Action limit(hash random_xgw 0.0.0.0 10/1 !FACILITY_REJECTED) </div><div id="bloop_customfont" class="" style="margin: 0px;">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Action limit_execute(hash outbound random_xgw 20 bridge [enable_heartbeat_events=5,nibble_rate=0.2192,nibble_increment=5,nibble_account=AB8KA191,carrier_switch=random_xgw,carrier_switch_id=1,carrier_ratecard_id=2,carrier_rate_rev=1,carrier_rate_type=lrn,carrier_id=1,carrier_connection_cost=0,carrier_rate=0.0119,carrier_interstate_cost=0.0119,carrier_intrastate_cost=0.0119,carrier_enable_billing=t,carrier_call_increment=1,carrier_min_duration=5,carrier_balance=17099.88924]sofia/gateway/random_xgw/1786866) </div><div id="bloop_customfont" class="" style="margin: 0px;">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Action limit(hash switch02 0.0.0.0 10/1 !FACILITY_REJECTED) </div><div id="bloop_customfont" class="" style="margin: 0px;">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Action limit_execute(hash outbound switch02 20 bridge [enable_heartbeat_events=5,nibble_rate=0.2192,nibble_increment=5,nibble_account=AB8KA191,carrier_switch=switch02,carrier_switch_id=3,carrier_ratecard_id=2,carrier_rate_rev=1,carrier_rate_type=lrn,carrier_id=1,carrier_connection_cost=0,carrier_rate=0.0119,carrier_interstate_cost=0.0119,carrier_intrastate_cost=0.0119,carrier_enable_billing=t,carrier_call_increment=1,carrier_min_duration=5,carrier_balance=17099.88924]sofia/gateway/switch02/1786866) </div><div id="bloop_customfont" class="" style="margin: 0px;">Dialplan: <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> Action hangup() </div><div id="bloop_customfont" class="" style="margin: 0px;">2015-01-22 11:47:14.856013 [DEBUG] switch_core_state_machine.c:216 (<a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a>) State Change CS_ROUTING -> CS_EXECUTE</div><div id="bloop_customfont" class="" style="margin: 0px;">2015-01-22 11:47:14.856013 [DEBUG] switch_core_session.c:1388 Send signal <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> [BREAK]</div><div id="bloop_customfont" class="" style="margin: 0px;">2015-01-22 11:47:14.856013 [DEBUG] switch_core_state_machine.c:528 (<a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a>) State ROUTING going to sleep</div><div id="bloop_customfont" class="" style="margin: 0px;">2015-01-22 11:47:14.856013 [DEBUG] switch_core_state_machine.c:472 (<a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a>) Running State Change CS_EXECUTE</div><div id="bloop_customfont" class="" style="margin: 0px;"><b class="">2015-01-22 11:47:14.856013 [DEBUG] sofia.c:6614 Channel <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> entering state [terminated][487]</b></div><div id="bloop_customfont" class="" style="margin: 0px;"><b class="">2015-01-22 11:47:14.856013 [NOTICE] sofia.c:7530 Hangup <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> [CS_EXECUTE] [ORIGINATOR_CANCEL]</b></div><div id="bloop_customfont" class="" style="margin: 0px;"><b class="">2015-01-22 11:47:14.856013 [DEBUG] switch_channel.c:3222 Send signal <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> [KILL]</b></div><div id="bloop_customfont" class="" style="margin: 0px;">2015-01-22 11:47:14.856013 [DEBUG] switch_core_session.c:1388 Send signal <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> [BREAK]</div><div id="bloop_customfont" class="" style="margin: 0px;">2015-01-22 11:47:14.856013 [DEBUG] switch_core_state_machine.c:535 (<a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a>) State EXECUTE</div><div id="bloop_customfont" class="" style="margin: 0px;">2015-01-22 11:47:14.856013 [DEBUG] mod_sofia.c:178 <a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a> SOFIA EXECUTE</div><div id="bloop_customfont" class="" style="margin: 0px;">2015-01-22 11:47:14.856013 [DEBUG] switch_core_state_machine.c:535 (<a href="mailto:sofia/internal/9401404@10.211.55.26" class="">sofia/internal/9401404@10.211.55.26</a>) State EXECUTE going to sleep</div><div id="bloop_customfont" class="" style="margin: 0px;"> </div></div></blockquote></div></div></div></div></blockquote></div></div></blockquote></div></div></body></html>