LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 04-02-2006, 01:22 PM   #1
dudulz
Member
 
Registered: Feb 2005
Location: Australia
Distribution: [Redhat] [Slackware] [SuSe] [FreeBSD]
Posts: 81

Rep: Reputation: 15
Couldn't open socket


Here is problem. I want to know how many capacity my linux can open socket. Where i know maximum socket can open? I hope, all can help
 
Old 04-02-2006, 01:32 PM   #2
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
A socket is nothing more than a file handle from the OS's perspective. The max number of sockets is limited to the number of max open files.
 
Old 04-02-2006, 01:35 PM   #3
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
hi,
opening a socket means you have to make a socket and bind that to a particular port.
Since there are 65,535 TCP and the same number of UDP ports (virtual), so i think its the maximum number of sockets you can have.
Hope some will have better idea about it.

regards
 
Old 04-02-2006, 01:41 PM   #4
dudulz
Member
 
Registered: Feb 2005
Location: Australia
Distribution: [Redhat] [Slackware] [SuSe] [FreeBSD]
Posts: 81

Original Poster
Rep: Reputation: 15
Thanks. But i forget, where file that have information kernel have maximum socket. May be in /proc? Mr jcliburn dan Mr ruudra ?
 
Old 04-02-2006, 01:56 PM   #5
b0nd
Senior Member
 
Registered: Jan 2005
Distribution: Slackware, BackTrack, Windows XP
Posts: 1,020

Rep: Reputation: 45
Quote:
Originally Posted by dudulz
Thanks. But i forget, where file that have information kernel have maximum socket. May be in /proc? Mr jcliburn dan Mr ruudra ?
No idea buddy......
 
Old 04-05-2006, 09:55 PM   #6
jcliburn
Member
 
Registered: Dec 2003
Location: Mississippi, USA
Distribution: Fedora
Posts: 435

Rep: Reputation: 33
Quote:
Originally Posted by dudulz
Thanks. But i forget, where file that have information kernel have maximum socket. May be in /proc? Mr jcliburn dan Mr ruudra ?
Sorry for the delay. I don't seem to be getting email reliably anymore alerting me to a change in a subscribed thread.

The number you're looking for is in /proc/sys/fs/file-max.
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Session management error: Could not open network socket nornagon Debian 3 05-31-2007 09:30 PM
java: need lots of socket connections open at once, but hit file limit BrianK Programming 6 01-10-2006 10:02 PM
open socket ethernet won't start roy.thistle Fedora 1 01-03-2006 12:21 AM
While connecting to session manager: Could not open network socket mrmailer Fedora 0 08-10-2004 05:55 AM
unable to open socket for inet6 NonSumPisces Linux - Networking 3 06-26-2004 02:18 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:50 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration