<div dir="ltr">The 98% cpu usage is the catalyst for the error, not the other way around.<div>You have consumed all your space for threads and the system cannot create any more for some reason.</div><div><br></div><div><br>
</div><div>FreeBSD has chosen to implement their own threading lib a few times and it seems to cause us trouble.</div><div>Did you set the thread stack size to 244 before launching?</div><div><br></div><div> </div><div><br>
</div></div><div class="gmail_extra"><br><br><div class="gmail_quote">On Wed, Aug 7, 2013 at 3:47 PM, Nikolay Rogoshchenkov <span dir="ltr">&lt;<a href="mailto:nickolayr@gmail.com" target="_blank">nickolayr@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div>Could you please explain what  this mean in FreeSwitch log??? </div><div><br></div><div>----------------------------------------------------------------------</div>
<div><i>[...]</i></div><div><div><i>2013-08-07 23:40:48.011687 [CRIT] switch_core_session.c:1705 Thread Failure!</i></div>
<div><i>2013-08-07 23:40:48.011687 [CRIT] switch_core_session.c:1665 LUKE: I&#39;m hit, but not bad.</i></div><div><i>2013-08-07 23:40:48.011687 [CRIT] switch_core_session.c:1666 LUKE&#39;S VOICE: Artoo, see what you can do with it. Hang on back there....</i></div>

<div><i>Green laserfire moves past the beeping little robot as his head turns.  After a few beeps and a twist of his mechanical arm,</i></div><div><i>Artoo reduces the max sessions to 101 thus, saving the switch from certain doom.</i></div>

<div><i>2013-08-07 23:40:48.031685 [CRIT] switch_core_session.c:1705 Thread Failure!</i></div><div><i>2013-08-07 23:40:48.031685 [CRIT] switch_core_session.c:1665 LUKE: I&#39;m hit, but not bad.</i></div><div><i>2013-08-07 23:40:48.031685 [CRIT] switch_core_session.c:1666 LUKE&#39;S VOICE: Artoo, see what you can do with it. Hang on back there....</i></div>

<div><i>Green laserfire moves past the beeping little robot as his head turns.  After a few beeps and a twist of his mechanical arm,</i></div><div><i>Artoo reduces the max sessions to 101 thus, saving the switch from certain doom.</i></div>

<div><i>2013-08-07 23:40:48.041688 [CRIT] switch_core_session.c:1705 Thread Failure!</i></div></div><div><i>[...]</i></div><div><div><i>2013-08-07 23:55:38.141571 [CRIT] switch_core_session.c:1705 Thread Failure!</i></div>

<div><i>2013-08-07 23:55:38.151578 [CRIT] switch_core_session.c:1705 Thread Failure!</i></div><div><i>2013-08-07 23:55:38.171584 [CRIT] switch_core_session.c:1705 Thread Failure!</i></div><div><i>[..]</i></div></div><div>

----------------------------------------------------------------------</div><div><br></div><div>It is not funny, at that moment freeswitch consumes 98% of CPU time, and did not response at all.</div><div><br></div><div><br>

</div><div>PS: (Version 1.5.5b git 8d005a4 2013-07-22 14:41:01Z) @FreeBSD 8.2-RELEASE (x64)</div><div><br>--<br>Nikolay</div>
<br><br>
<br>_________________________________________________________________________<br>
Professional FreeSWITCH Consulting Services:<br>
<a href="mailto:consulting@freeswitch.org">consulting@freeswitch.org</a><br>
<a href="http://www.freeswitchsolutions.com" target="_blank">http://www.freeswitchsolutions.com</a><br>
<br>
FreeSWITCH-powered IP PBX: The CudaTel Communication Server<br>
<a href="http://www.cudatel.com" target="_blank">http://www.cudatel.com</a><br>
<br>
Official FreeSWITCH Sites<br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<a href="http://wiki.freeswitch.org" target="_blank">http://wiki.freeswitch.org</a><br>
<a href="http://www.cluecon.com" target="_blank">http://www.cluecon.com</a><br>
<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><div><br></div>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900
</div>