Re: MAXFD is always 1024

From: David Morris (dwm@xpasc.com)
Date: Mon Aug 15 2005 - 11:51:37 MDT


There are two sets of limits plus a few adhoc bits and pieces you can trip
over.
  a. You set the system maximum as you noted
  b. You then must set the per user limit in
       /etc/security/limits.conf
     if polygraph is running as userlogin=polygraph, then
       polygraph hard nofile 32768
     added to limits.conf should help.
  c. Some limits are also set in the wrappers such as
      /etc/init.c/functions
     so I'd hack my startup script to record the results of the
     actual settings at start time. For example,
      ulimit -a >> /tmp/startUpLimits.txt

Dave Morris

On Mon, 15 Aug 2005, Hay Tran The wrote:

> Hi,
> 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"
>
> 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.
>
> What do I have to do to increase the number of open file for Web-Polygraph?
>
> Thanks
> Quang
>
>
> ---------------------------------
> Bạn có sử dụng Yahoo! không?
> Hiá»~Gn nay có 1GB dung lượng lưu trữ
> http://vn.mail.yahoo.com/



This archive was generated by hypermail 2b29 : Mon Feb 06 2006 - 12:00:28 MST