TCP port Exhaustion: Difference between revisions

From MiRTA PBX documentation
Jump to navigation Jump to search
(Created page with "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 A...")
 
No edit summary
 
Line 7: Line 7:
Common solutions would be to lower your TCP timers and turn on tcp_reuse. In your sysctl.conf file, add:
Common solutions would be to lower your TCP timers and turn on tcp_reuse. In your sysctl.conf file, add:


<pre>
net.ipv4.tcp_fin_timeout=1
net.ipv4.tcp_fin_timeout=1
net.ipv4.tcp_tw_reuse=1
net.ipv4.tcp_tw_reuse=1
</pre>

Latest revision as of 12:57, 15 November 2017

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