Asterisk 1.8 / solaris / too many open files

Hi, im using asterisk 1.8 on solaris (compiled from source)

from ~30 active calls (core show channels count), on CLI i start to see “too may open files”

ulimit -n says 1024

i tried (and get):

ulimit -n 65536; /opt/sbin/asterisk
FD 32767 exceeds the maximum size of ast_fdset!
Maximum select()able file descriptor is 1024

i look into /proc//fd/ and only see ~200 files

Any idea about this?

Thanks!

Something’s seriously wrong there if you have ~200 files open!

On my Asterisk system (Debian Lenny install via apt) ls -l /proc//fd shows the following:

lrwx------ 1 root root 64 2010-11-18 14:56 0 -> /dev/null lrwx------ 1 root root 64 2010-11-18 14:56 1 -> /dev/null lr-x------ 1 root root 64 2010-11-18 14:56 10 -> pipe:[2981728] l-wx------ 1 root root 64 2010-11-18 14:56 11 -> pipe:[2981728] lrwx------ 1 root root 64 2010-11-18 14:56 2 -> /dev/null lrwx------ 1 root root 64 2010-11-18 14:56 3 -> socket:[2981717] l-wx------ 1 root root 64 2010-11-18 14:56 4 -> /var/log/asterisk/messages l-wx------ 1 root root 64 2010-11-18 14:56 5 -> /var/log/asterisk/event_log l-wx------ 1 root root 64 2010-11-18 14:56 6 -> /var/log/asterisk/queue_log lrwx------ 1 root root 64 2010-11-18 14:56 7 -> /var/lib/asterisk/astdb lrwx------ 1 root root 64 2010-11-18 14:56 8 -> socket:[2981719] lrwx------ 1 root root 64 2010-11-18 14:56 9 -> socket:[2981727]

Only 11 entries. Note, however, that the system is idle at the moment (no calls through it).