Is there any way to measure the maximum number of outgoing connections I can establish into the Internet? I use Linux and have no outside server to try connecting to. My goal is to optimize the background torrents so that they work on their maximum while not interfering with browser.

  • Your best bet is just tuning it all by hand. You stated in one comment you know 100 doesn't work but 60 does. Up it by half and try again. If this fails half that and try again. Nov 22 '11 at 15:57

It isn't really clear. Are you talking about the scientific number? Or the number of useful connections for performance/bandwidth reasons? Here is the scientific/software limit answer:

root@ac1:/data# netstat -an --inet | head
Active Internet connections (servers and established)
Proto Recv-Q Send-Q Local Address           Foreign Address         State      
tcp        0      0 *               LISTEN     
tcp        0      0    *               LISTEN     
tcp        0      0 *               LISTEN     

This will print all the connections currently open. Here is some info on tuning ephemeral port pools in linux:


  • I am asking not about the currently open connections, but number of connections I CAN open. For example, at home, if I allow torrent to make up to 100 connections, all other apps lose the ability to connect. However, if I allow only 60, other apps work normally. It is not a bandwidth problem, but a number of connections only. I want a faster way to get the max number than starting a torrent of ubuntu iso and counting its connections. Oct 1 '11 at 17:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.