Re: MAXFD is always 1024

Alex Rousskov <[email protected]>
Newsgroups gmane.comp.web.web-polygraph.user
Message-ID <[email protected]>
On Mon, 2005-08-15 at 11:55 +0700, Hay Tran The wrote: 
>  I am using Redhat Linux ES 3.1
>  
> I have changed the maximum open files for OS by doing all three
> things:
> - Edit /etc/sysctl.conf, add fs.file-max = 32768 , then run #sysctl -p
> I can double check /proc/sys/fs/file-max and see this figure 32768
>  
> - run command #ulimit -n 32768
>  
> - Edit /usrusr/include/bits/typesizes.h and set 
> #define __FD_SETSIZE            32768
> 
>  
> Next, I re-complile web-polygraph. I can see below messages during
> "configure" is running:
>  
> "checking Default FD_SETSIZE value... 32768
> checking Maximum number of filedescriptors we can open... 1024"

The second message means that ./configure process cannot open more than
1024 file descriptors. Thus, whatever changes you made to increase the
number of file descriptors were not sufficient.

> After installation finished, I run polyctl and got below message:
> 
> "FDs: 1024 out of 1024 FDs can be used; safeguard limit: 983"
> 
>  
> I think web-polygraph can detect the FD_SETSIZE = 32768, but it still
> use 1024 as maximum number of open file.

Yes, because ./configure fails to oped more than 1024 files. Polygraph
does not trust FD_SETSIZE if it cannot actually open that many files.

> What do I have to do to increase the number of open file for
> Web-Polygraph?

It does not seem like a Polygraph-specific problem. You may want to
check individual user limits. Often, these limits prohibit users from
opening many files. Sometimes, running as root will raise the limit, but
not always; you may have to change user configuration. Whatever you do,
always watch out for ./configure output. It must be able to open
FD_SETSIZE file descriptors.

HTH,

Alex.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.