[asterisk-dev] How can I set the number of threads? limiting number of threads?

David Vossel dvossel at digium.com
Thu Oct 21 15:12:30 CDT 2010


----- Original Message -----
> From: "Min Lee" <min.lee at gatech.edu>
> To: "Asterisk Developers Mailing List" <asterisk-dev at lists.digium.com>
> Sent: Thursday, October 21, 2010 2:42:24 PM
> Subject: [asterisk-dev] How can I set the number of threads? limiting number of threads?
> Hi,
> Asterisk is highly multithreaded application, and I want to set the
> number
> of threads it's spawning. I couldn't find it in configuration file.
> I'd like to limit the number of threads, or make it single-threaded.
> How can I limit the number of threads?
> Should I build it from source code?
> Any help would be appreciated.
> Thanks!
> Min
> 

One way to limit the number of threads spawned at startup is to limit what channel drivers/modules you have enabled.  For example if you are not using chan_iax, not loading chan_iax will kill off quite a few thread I believe.  

David Vossel
Digium, Inc. | Software Developer, Open Source Software
445 Jan Davis Drive NW - Huntsville, AL 35806 - USA
Check us out at: www.digium.com & www.asterisk.org
The_Boy_Wonder in #asterisk-dev



More information about the asterisk-dev mailing list