LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-16-2003, 04:54 AM   #1
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Rep: Reputation: 15
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?
 
Old 01-16-2003, 05:52 PM   #2
DFossmeister
LQ Newbie
 
Registered: Jan 2003
Location: Richmond, VA
Distribution: Redhat 7.1-RHEL 4r2, Gentoo
Posts: 15

Rep: Reputation: 0
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.
 
Old 01-17-2003, 04:55 AM   #3
Quis
Member
 
Registered: May 2001
Location: Germany, Süd-Baden
Distribution: Gentoo
Posts: 139

Original Poster
Rep: Reputation: 15
Thank you helped a lot.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
TCP Network Sockets Rakoon Red Hat 1 08-04-2005 01:36 AM
maximum number of pending TCP connection sector Linux - Networking 0 07-01-2003 10:47 AM
Server/Client-commucation via TCP-Sockets cYbORg Programming 5 05-18-2003 07:01 PM
Maximum tcp port for OPENSSH yuzuohong Linux - General 1 04-04-2003 05:27 PM
netstat doesn't show tcp sockets in Redhat 7.2 pfpalmer Linux - General 3 10-31-2002 04:04 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 02:45 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration