Facing a problem in the production server running debian (7.0) with nodejs (v0.10.x) cluster where it doesn't close some TCP connections to the clients.
This leads to connection drops when connection limit is reached.
ss -s tool I can monitor that some connections are closed after a while but some are not.
Here is the
sysctrl config changes I use in order to increase maximum connections as temporary workaround:
net.ipv4.ip_local_port_range = 1024 65500 net.core.rmem_max = 33554432 net.core.wmem_max = 33554432 net.ipv4.tcp_rmem = 4096 16384 33554432 net.ipv4.tcp_wmem = 4096 16384 33554432 net.ipv4.tcp_mem = 786432 1048576 26777216 net.core.netdev_max_backlog = 2000
How to find the bottleneck and solve the problem?