[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]

Re: [tor-talk] Error binding network socket: Address already in use



Hi Andy!

Nice to hear from you! :)

On 11.01.2012 22:22, Andy Isaacson wrote:
> We recently saw this on noisetor until we set tcp_tw_recycle = 1.
> But you've presumably got that set already as I took it from your
> sysctl.conf...

Yes.

> Are you also maxing out around 77k sockets per host?

Probably. I thought the limit of sockets were per IP address, which
obviously is not the case. I am now letting it write the number of TCP
sockets to http://axigy1.torservers.net/numsockets.txt every 15 minutes.

------- snip countsockets.sh -------
#!/bin/sh
NETSTAT=`netstat -nta`
COUNT0=`echo "$NETSTAT" |wc -l`
COUNT1=`echo "$NETSTAT" | grep 173.254.192.35 | wc -l`
COUNT2=`echo "$NETSTAT" | grep 173.254.192.36 | wc -l`
COUNT3=`echo "$NETSTAT" | grep 96.44.163.75 | wc -l`
COUNT4=`echo "$NETSTAT" | grep 96.44.163.77 | wc -l`

echo $(date +%Y.%m.%d-%H:%M:%S) $COUNT0 $COUNT1 $COUNT2 $COUNT3 $COUNT4
------- /snip -------
(1-4 are the four IP addresses, each used by one of the Tor processes)

-- 
Moritz Bartl
https://www.torservers.net/
_______________________________________________
tor-talk mailing list
tor-talk@xxxxxxxxxxxxxxxxxxxx
https://lists.torproject.org/cgi-bin/mailman/listinfo/tor-talk