LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Maximum TCP-Sockets (https://www.linuxquestions.org/questions/linux-networking-3/maximum-tcp-sockets-41670/)

Quis 01-16-2003 03:54 AM

Maximum TCP-Sockets
 
Hi,

is there anyway to find out, how many TCP-Sockets are available on my RedHat 8.0 System?
I guess that Inbound Connections are limited by filehandlers and Outbound Connections by Ports (?).
Are the Inbound Connections depending on the memory available?

DFossmeister 01-16-2003 04:52 PM

try looking at /proc/sys/fs/file-nr and file-max. Sockets are treated as file handles, so this configuration option applies.

The file-nr has 3 numbers in it. The first is peak, the second is current, the third is max.

To increase the max, do "cat new_max > /proc/sys/fs/file-max", where new_max is what you want your new maximum to be.

Remember that these are system-wide settings. To set it for an individual user, you have to use ulimit. Read the man page for ulimit for its use.

Quis 01-17-2003 03:55 AM

Thank you helped a lot.


All times are GMT -5. The time now is 09:13 AM.