LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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 11-08-2005, 04:05 PM   #1
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Rep: Reputation: 55
How many total TCP sockets can my linux box have? how can I check the number used?


How many total TCP sockets can my linux box have? how can I check the number currently used?
 
Old 11-09-2005, 03:55 AM   #2
baldy3105
Member
 
Registered: Jan 2003
Location: Cambridgeshire, UK
Distribution: Mint (Desktop), Debian (Server)
Posts: 891

Rep: Reputation: 184Reputation: 184
The port field in the TCP and UDP headers is a 16 bit binary number so there are 65536 ports available. So theoretically you could have 65536 ports.

netstat -pant will tell you which ports are active or listening, if you want a second opinion run a portscan to localhost

cheers
 
Old 11-09-2005, 03:11 PM   #3
abefroman
Senior Member
 
Registered: Feb 2004
Location: lost+found
Distribution: CentOS
Posts: 1,430

Original Poster
Rep: Reputation: 55
Thanks, I know that can determinate the max port and the number of current sockets, but how many total sockets can my server hold?

Is there a max socket connections per port?

Or is there like a general rule of them, like "If you have X connections or more to port 80, then the server is overloaded"?
 
  


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 12:36 AM
List total number of directories paraiso Linux - Newbie 5 04-18-2005 04:04 AM
Server/Client-commucation via TCP-Sockets cYbORg Programming 5 05-18-2003 06:01 PM
Maximum TCP-Sockets Quis Linux - Networking 2 01-17-2003 03:55 AM
netstat doesn't show tcp sockets in Redhat 7.2 pfpalmer Linux - General 3 10-31-2002 03:04 AM

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

All times are GMT -5. The time now is 07:01 AM.

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
Open Source Consulting | Domain Registration