[asterisk-users] [SOLVED] Asterisk thread limit

satish patel satish_lx at hotmail.com
Tue Apr 19 14:25:02 CDT 2011



Solution: The problem is not actually with number of threads.. It is with the stack size.
 
Just reduce stacksize per thread and it allowed thousand of calls :)  Also use same configuration to sipp client and server. 

ulimit -s 1024  


From: satish_lx at hotmail.com
To: asterisk-users at lists.digium.com
Date: Wed, 13 Apr 2011 15:08:15 +0000
Subject: Re: [asterisk-users] Asterisk thread limitver 








Oops!  Asterisk open 419 total thread and stop accepting connection. Can we control number of thread to open or limit ?

root at XXXX:~# ps -C asterisk -L -o pid,tid,pcpu,state,nlwp,args | wc -l
419


> Date: Wed, 13 Apr 2011 10:58:31 -0400
> From: lathama at gmail.com
> To: asterisk-users at lists.digium.com
> Subject: Re: [asterisk-users] Asterisk thread limit
> 
> On Wed, Apr 13, 2011 at 10:50 AM, satish patel <satish_lx at hotmail.com> wrote:
> > Hi Guys!
> >
> > I'm middle of testing my asterisk-1.8.3.2 just make sure how much call it
> > could handle in production so following is my senario.
> >
> > [sipp_client]---------------[Asterisk]----------------[sipp_server]
> >
> > sipp_client
> > ./sipp -sf uac_pcap.xml -d 100000 -i 172.30.254.211 -s 2000 172.30.1.47 -l
> > 1000 -r 250 -rp 5000 -m 1000
> >
> > sipp_server
> > ./sipp -sn uas -i 172.30.245.208
> >
> >
> > In above if i set -r 250 -rp 5000 calls per sec. in this case my asterisk
> > stopped accepting calls at  382 active calls and sipp client through error
> > "1302704824.872674: Can create thread to send RTP packets. (But asterisk is
> > still live to accept calls)
> > "
> >
> > I have ulimit is set to unlimited so just wondering is there any asterisk
> > number of thread limitation which we can set to go beyond this boundary?
> >
> > -S
> 
> Memory limit or load limit might cause this also.
> 
> -- 
> ~~~ Andrew "lathama" Latham lathama at gmail.com ~~~
> 
> --
> _____________________________________________________________________
> -- Bandwidth and Colocation Provided by http://www.api-digital.com --
> New to Asterisk? Join us for a live introductory webinar every Thurs:
>                http://www.asterisk.org/hello
> 
> asterisk-users mailing list
> To UNSUBSCRIBE or update options visit:
>    http://lists.digium.com/mailman/listinfo/asterisk-users
 		 	   		  

--
_____________________________________________________________________
-- Bandwidth and Colocation Provided by http://www.api-digital.com --
New to Asterisk? Join us for a live introductory webinar every Thurs:
               http://www.asterisk.org/hello

asterisk-users mailing list
To UNSUBSCRIBE or update options visit:
   http://lists.digium.com/mailman/listinfo/asterisk-users 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.digium.com/pipermail/asterisk-users/attachments/20110419/bb19626c/attachment.htm>


More information about the asterisk-users mailing list