Hello!
On Wed, Feb 12, 2014 at 02:39:41PM -0500, Jack Andolini wrote:
- Nginx 1.4.3 receives the requests, and then derives them to Tomcat 7.0.33
client: 58.81.5.31, server: api.acme.com, request: "GET
Obviously I’m running out of some kind of resource (ports?). If I wait for
root@ip-10-41-156-142:~# sysctl net.ipv4.ip_local_port_range
net.ipv4.ip_local_port_range = 32768 61000I have read some postings about configuring ports in order to get rid of
this error message, but I don’t know if that is my problem.
You’ve run out of local ports due to sockets in TIME-WAIT state.
There are more than one possible solution, including using lower
MSL, using bigger local port range, using keepalive connections,
using unix sockets to connect to backends and so on.
Simpliest solution would be to enable TIME-WAIT sockets reuse,
with net.ipv4.tcp_tw_reuse (or net.ipv4.tcp_tw_recycle):
sysctl net.ipv4.tcp_tw_reuse=1
–
Maxim D.