[Asterisk-Users] RTP ports in use grows and grows...

Bryan Field-Elliot bryan at nextalarm.com
Fri Sep 9 13:58:57 MST 2005


We've been seeing a pattern over the last couple of weeks with our
Asterisk servers (1.0.9). The number of ports in use (RTP) seems to grow
by two every minute or so. Eventually the server will run out of
allowable files open and crash. We are resetting the server once per day
to prevent this from occurring.

Running "lsof" shows the end of the list like this:

asterisk 26733 astx 1794u  IPv4  183341654                 UDP
192.168.1.123:22790
asterisk 26733 astx 1795u  IPv4  183341655                 UDP *:22791
asterisk 26733 astx 1796u  IPv4  183312190                 UDP
192.168.1.123:24170
asterisk 26733 astx 1797u  IPv4  183312191                 UDP *:24171
asterisk 26733 astx 1798u  IPv4  183335059                 UDP
192.168.1.123:21132
asterisk 26733 astx 1799u  IPv4  183335060                 UDP *:21133
asterisk 26733 astx 1802u  IPv4  183342252                 UDP
192.168.1.123:20358
asterisk 26733 astx 1803u  IPv4  183342253                 UDP *:20359

and the list grows and grows (slowly but steadily).

We have only around 600 SIP clients on this particular server so
something is clearly amiss.

My questions are:

1. Are there any known file handle leaks in rtp.c or sip.c?

2. If the number of ports open eventually reaches the port boundaries I
have configured in rtp.c (e.g. start at 20000, end at 25000), will
Asterisk crash, or it will it start to recycle those ports?

3. I have set ulimit -n to a higher number but this doesn't seem like a
solution, only a temporary band-aid.

Thank you,

Bryan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.digium.com/pipermail/asterisk-users/attachments/20050909/00503fe8/attachment.htm


More information about the asterisk-users mailing list