Friday, February 6, 2015

Set ulimit To Increase Concurrent Call On Asterisk.

Increase the number of file descriptors (FDs) ie. “Max number of open files” using ulimit command to allow asterisk to handle more than 200 concurrent calls

To increase FDs permanently, go to /etc/security/limits.conf
root             soft   nofile          20000
root             hard   nofile          25000

Reboot your system and check the limits
#ulimit –n    It returns SOFT limit
#ulimit –n –H   It return HARD limit

You also have to use ‘ulimit –n <number of FDs>’ in asterisk startup script

#vi /etc/init.d/asterisk

                -------

                ---------

                                                ulimit –n 20000

                                                /usr/sbin/asterisk

It is always a good idea to check if your asterisk process is really using the ulimit specified by you or not. You can check that by looking into the process itself.  Check the field ‘Max Open Files’.

                #cat /proc/`pidof asterisk`/limits

Note:  `pidof asterisk` returns PID(Process ID) of asterisk



7 comments:

  1. This comment has been removed by the author.

    ReplyDelete
  2. Hi.. Can i change ulimit without restarting server and asterisk.

    ReplyDelete
    Replies
    1. for ulimit better way is set ulimit and restart server and then start asterisk.

      Delete
    2. yes, nowadays it's useful command, you can able to use it for same.

      Delete
  3. Solution: https://serverfault.com/a/1079830/544430

    ReplyDelete
  4. This exciting collection highlights a free games feature that's triggered by six or extra gold symbols. Capture a gold symbol in a pink body and a 500x or 750x whole bet is awarded. At the top of the bonus, any place with a green, silver or pink body is changed with a firecracker symbol, providing the opportunity to obtain a lot as} a 7,500x bet multiplier with a triple firecracker symbol. Buy-a-pay slots are recognizable by the format of their pay tables. Notice, for instance, that a Double Diamond slot has the identical symbols shown for one coin or two coin play. But a glance at|have a glance at} Bally's Flaming 7s machine, and you will notice the bars listed for 1xbet one coin and the 7s listed for 2 coins.

    ReplyDelete