Re: [squid-users] commBind: Cannot bind socket FD 98 to *:0: (98) Address already in use

From: Henrik Nordstrom <henrik@dont-contact.us>
Date: Fri, 02 Feb 2007 16:39:38 +0100

fre 2007-02-02 klockan 14:11 +0100 skrev Stefan Bohm:
> Hi all,
>
> yesterday we had some strange problems running our reverse-proxy squid cluster.
> During some high-traffic sports event, squid starts to emit messages
> like:
>
> commBind: Cannot bind socket FD 98 to *:0: (98) Address already in use

You have run out of free ports, all available ports occupied by
TIME_WAIT sockets.

Things to look into

1. Make sure you internally use persistent connections between Squid and
the web servers. This cuts down on the number of initiated connections/s
considerably.

2. Configure the unassigned port range as big as possible in your OS. On
Linux this is set in /proc/sys/net/ipv4/ip_local_port_range. The biggest
possible range is 1024-65535 and can sustain up to at least 500
connections/s continuous load squid->webservers.

Regards
Henrik

Received on Fri Feb 02 2007 - 08:39:43 MST

This archive was generated by hypermail pre-2.1.9 : Thu Mar 01 2007 - 12:00:01 MST