SUMMARY: Max number of Sockets...

From: Phil Poole (poole@ncifcrf.gov)
Date: Thu Oct 10 1996 - 08:03:41 CDT


Howdy folks.

        Thanks goes out to Russ Poffenberger he was the only responce
        I received; and it is enclosed below in its entirety.

Original Question:

> Phil Poole <poole@ncifcrf.gov> wrote:
> > Howdy all,
> >
> >
> > I've got a quick programming question.
> >
> > Is there a parameter under Solaris 2.4 to set the max number
> > of concurrent open sockets ? and if NOT what is the limiting
> > factor ?
> >
> > I am currently working on a program that opens approx. 48
> > sockets from 1 thread and then fails to open any others.
> >
> > The only correlation I can draw is that the default
> > number of ptys is 48 but can be adjusted in the
> > /etc/system file.
> >
> > Am I correct in this assumption ? I thought that a PTY
> > could be assigned to a socket..but that a socket did
> > not necessarily get assigned to a PTY.
> >
>

Solution:

> The number of sockets is constrained by the number of open file descriptors. By
> default, you get 64. Under solaris, you should be able to raise the limit to the
> hard limit of 1024. In csh, use "limit descriptors 1024" prior to running your
> application.
>
>
> --
> Russ Poffenberger Engineering Specialist
> Schlumberger Technologies ATE DOMAIN: poffen@San-Jose.ate.slb.com
> 1601 Technology Drive CIS: 72401,276
> San Jose, Ca. 95110 Voice: (408)437-5254 FAX: (408)437-5246
>

--
       Phil Poole	| SUN Unix Administrator
     poole@ncifcrf.gov	| Frederick Biomedical SuperComputing Center
      (301) 846-5721	| Frederick MD, 21702



This archive was generated by hypermail 2.1.2 : Fri Sep 28 2001 - 23:11:11 CDT