TCP port Exhaustion

From MiRTA PBX documentation
Revision as of 16:57, 15 November 2017 by Admin (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

While running several Wallboards, maybe connected to several queues, it is not uncommon to see a shortage of ephemeral ports. You can count how many ports you are using with AMI with the following command:

netstat -an | grep TIME_WAIT | grep -c :5038

Common solutions would be to lower your TCP timers and turn on tcp_reuse. In your sysctl.conf file, add:

net.ipv4.tcp_fin_timeout=1
net.ipv4.tcp_tw_reuse=1