Usenet comp.os.linux.alpha (1997-2013)
 help / color / mirror / Atom feed
From: Nithyanandham <m.nithyanandham@blr.spcnl.co.in>
Subject: Re: num limit on socket opened using accept() ?
Date: Thu, 31 May 2001 17:00:45 +0530	[thread overview]
Message-ID: <3B162B65.D17CC3CF@blr.spcnl.co.in> (raw)
In-Reply-To: 9f53vs$psk$1@coco.singnet.com.sg



jstwo wrote:

> I just find a define in include/linux/limit.h from the kernel source tree:
> #define OPEN_MAX 256 /* # open files a process may have */

sysconf(_SC_OPEN_MAX );
getrlimit(RLIMIT_NOFILE, &limits);(limits has soft & hard limits)
ulimit(UL_GDESLIM, 0);
getdtablesize( )
are the other options.

> could this be the one that cause the problem?

Yes.  !

> if i change this number to
> 1024 ( and compile a new kernel if needed),

If you want to set it for an individual process, do it using setrlimit( ) or
ulimit(should be a root).
or
if you want to set it statically , you need to recompile the kernel .

--Nithyanand.
  Siemens, Bangalore, India.



      reply	other threads:[~2001-05-31 11:30 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
2001-05-31  9:55     ` Nithyanandham
2001-05-31  9:58 ` jstwo
2001-05-31 11:30   ` Nithyanandham [this message]
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