Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: "jstwo" <jstwo@writeme.NoSpAm.com>
Subject: Re: num limit on socket opened using accept() ?
Date: Thu, 31 May 2001 17:35:10 +0800	[thread overview]
Message-ID: <9f52kv$ovp$1@coco.singnet.com.sg> (raw)
In-Reply-To: 3B160CE5.8845F2A1@blr.spcnl.co.in

thanks for reply.

the soft limit showed using "ulimit -Sn" is 1024. to be sure , i also set it
in the program to 1024. but it didnt help at all.

jstwo
"Nithyanandham" <m.nithyanandham@blr.spcnl.co.in> wrote in message
news:3B160CE5.8845F2A1@blr.spcnl.co.in...
>
>
> jstwo wrote:
>
> > Hi,
> >
> > I am working on a network server module. when i test it with massive
> > simultaneous connections, it stopped accept new connection after getting
> > 240+ connections( the maximum fd num is 255). it will start accept new
one
> > after some old one closed. it's quite odd as the fd limit has been set
to
> > 1024/1024 for one process.
> > I read somewhere that the problem is with the version of libc which
limit
> > the maximum fd to 255. Is it true and how to overcome the problem easily
> >  without recompile the libc hoefully)?
>
> Do "ulimit -a " to know the maximum number of fd allowed .
> You can change this using setrlimit( ).
>
> Remember that the maximum number of fd per user per process is different
from
> the
> maximum number of fd for the whole system.
>
> --Nithyanand.
>   Siemens, Bangalore, India.
>




  reply	other threads:[~2001-05-31  9:35 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2001-05-31  9:01 num limit on socket opened using accept() ? jstwo
2001-05-31  9:20 ` Nithyanandham
2001-05-31  9:35   ` jstwo [this message]
2001-05-31  9:55     ` Nithyanandham
2001-05-31  9:58 ` jstwo
2001-05-31 11:30   ` Nithyanandham
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox