<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Joshua,<BR> <BR>Do you know what could be causing this issue?<BR> <BR>There is plenty of memory and ports available. As you can see the ulimit settings are mostly unlimited.<BR> <BR>Kind regards,<BR> <BR>Ross <br> <BR><div>> Date: Mon, 22 Feb 2016 07:45:28 -0400<br>> From: jcolp@digium.com<br>> To: asterisk-dev@lists.digium.com<br>> Subject: Re: [asterisk-dev] Asterisk 13.7.2 Failed to create new channel thread<br>> <br>> Ross Beer wrote:<br>> > *Hi,*<br>> > **<br>> > *We are receiving the following error when hitting around 500 channels<br>> > in a queue using PJSIP:*<br>> ><br>> > [2016-02-22 09:20:42] WARNING[31097]: pbx.c:6980 ast_pbx_start:<br>> > Failed to create new channel thread<br>> > [2016-02-22 09:20:42] WARNING[31097]: chan_pjsip.c:2202<br>> > pbx_start_incoming_request: Failed to start PBX ;(<br>> <br>> <br>> This would be coming from the system when we try to create a thread.<br>> <br>> ><br>> ><br>> > *Limits are set as follows:*<br>> ><br>> > ulimit -a<br>> > core file size (blocks, -c) unlimited<br>> > data seg size (kbytes, -d) unlimited<br>> > scheduling priority (-e) 0<br>> > file size (blocks, -f) unlimited<br>> > pending signals (-i) unlimited<br>> > max locked memory (kbytes, -l) unlimited<br>> > max memory size (kbytes, -m) unlimited<br>> > open files (-n) 800000<br>> > pipe size (512 bytes, -p) 8<br>> > POSIX message queues (bytes, -q) unlimited<br>> > real-time priority (-r) 0<br>> > stack size (kbytes, -s) unlimited<br>> > cpu time (seconds, -t) unlimited<br>> > max user processes (-u) unlimited<br>> > virtual memory (kbytes, -v) unlimited<br>> > file locks (-x) unlimited<br>> ><br>> ><br>> > *Can this be resolved by configuring pjproject in the following way?*<br>> ><br>> > ./configure CFLAGS="-DNDEBUG -DPJ_HAS_IPV6=1 -DPJSUA_MAX_CALLS=5000<br>> > -DPJSUA_MAX_PLAYERS=5000" --prefix=/usr --libdir=/usr/lib64<br>> > --enable-shared --disable-video --disable-sound --disable-opencore-amr<br>> ><br>> > *Basically setting PJSUA_MAX_CALLS=5000 and PJSUA_MAX_PLAYERS=5000<br>> > higher than the default?*<br>> <br>> No, those have no impact on threading or constraints within Asterisk <br>> itself. They will do nothing when used with Asterisk.<br>> <br>> -- <br>> Joshua Colp<br>> Digium, Inc. | Senior Software Developer<br>> 445 Jan Davis Drive NW - Huntsville, AL 35806 - US<br>> Check us out at: www.digium.com & www.asterisk.org<br>> <br>> <br>> -- <br>> _____________________________________________________________________<br>> -- Bandwidth and Colocation Provided by http://www.api-digital.com --<br>> <br>> asterisk-dev mailing list<br>> To UNSUBSCRIBE or update options visit:<br>> http://lists.digium.com/mailman/listinfo/asterisk-dev<br></div> </div></body>
</html>