From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fc89c,ca0d90a74bfe79d3 X-Google-Attributes: gidfc89c,public X-Google-Thread: 111c93,ca0d90a74bfe79d3 X-Google-Attributes: gid111c93,public X-Google-Thread: 10669a,ca0d90a74bfe79d3 X-Google-Attributes: gid10669a,public X-Google-Thread: f9325,ca0d90a74bfe79d3 X-Google-Attributes: gidf9325,public X-Google-ArrivalTime: 2001-05-31 04:25:03 PST Path: archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!newsfeed00.sul.t-online.de!t-online.de!newsfeed.r-kom.de!feeder01.news.de.uu.net!newsfeed.siemens.de!news.mch.sbs.de!not-for-mail From: Nithyanandham Newsgroups: comp.os.linux.alpha,comp.os.linux.networking,comp.protocols.tcp-ip,comp.unix.programmer Subject: Re: num limit on socket opened using accept() ? Date: Thu, 31 May 2001 17:00:45 +0530 Organization: Siemens Inc. Message-ID: <3B162B65.D17CC3CF@blr.spcnl.co.in> References: <9f50l7$phe$1@coco.singnet.com.sg> <9f53vs$psk$1@coco.singnet.com.sg> NNTP-Posting-Host: 132.186.66.212 Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Mailer: Mozilla 4.72 [en] (WinNT; I) X-Accept-Language: en Xref: archiver1.google.com comp.os.linux.alpha:2979 comp.os.linux.networking:43846 comp.protocols.tcp-ip:7571 comp.unix.programmer:12668 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.